------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\Ahmed\Dropbox\Replication_Files\Replication Files for CPS\MainAnalysis.log
  log type:  text
 opened on:  19 Jan 2023, 16:32:16

. 
. ****** Import data 
. set matsize 8000

. set more off

. use "wvs_relig.dta", clear

. 
. ****************** Figure (1)
. //Panel (a) 
. histogram belief, percent xla(1/10, valuelabel noticks) barw(0.6) xtitle(God's importance)sch(s2mono)
(bin=51, start=1, width=.17647059)

. graph export spirituality_histogram.png
(file spirituality_histogram.png written in PNG format)

. 
. //Panel (b)
. histogram attend_1, percent xla(1/4, valuelabel noticks) barw(0.6) xtitle(Church attendance)sch(s2mono)
(bin=51, start=1, width=.05882353)

. graph export hist_attendance.png
(file hist_attendance.png written in PNG format)

. 
. ****************** Figure (2)
. //The production of this plot involves several steps
. 
. //(1) Define and label the four religious groups
. gen spiritual=(belief==10&belief~=.)

. replace spiritual=. if belief==.
(2,476 real changes made, 2,476 to missing)

. 
. gen religrp=.
(151,969 missing values generated)

. replace religrp=1 if (attender==0 & spiritual==0)
(69,306 real changes made)

. replace religrp=2 if (attender==1 & spiritual==0)
(12,232 real changes made)

. replace religrp=3 if (attender==0 & spiritual==1)
(34,785 real changes made)

. replace religrp=4 if (attender==1 & spiritual==1)
(33,170 real changes made)

. 
. tab religrp, gen(relgrp)

    religrp |      Freq.     Percent        Cum.
------------+-----------------------------------
          1 |     69,306       46.36       46.36
          2 |     12,232        8.18       54.54
          3 |     34,785       23.27       77.81
          4 |     33,170       22.19      100.00
------------+-----------------------------------
      Total |    149,493      100.00

. 
. label define religrp 1 " Non-Religious" 2 "Non-Spiritual Participants"  3 "Non-Participant Spirituals" 4 "Participant Spirituals", replace

. label values religrp religrp

. 
. //(2) Estimate the average size of each group per country
. collapse (mean)  relgrp1 relgrp2 relgrp3 relgrp4 [aw=S017], by(S025)cw

. 
. //(3) Generate the plot
. label var relgrp1 "Non-religious"

. label var relgrp2 "Non-believing participants"

. label var relgrp3 "Non-participant believers"

. label var relgrp4 "Believing participants"

. graph hbox relgrp1 relgrp2 relgrp3 relgrp4, legend(off) sch(s2mono) showyvars

. graph export groupsize.png
(file groupsize.png written in PNG format)

. 
. ************** Figure (3)
. use "wvs_relig.dta", clear 

. 
. qui reg  sdantigay sdbelief sdattendance  belief_attend  sdinc sdeduc employed  sdage sdage2 notlook  orthodox_i protestant_i catholic_i /// 
> female    typecity1 typecity2   i.year i.ctry_survey_r [aw=S017] ,  vce(cluster ctry_survey_r)

. est sto gay

. 
. qui reg   sdantiab  sdbelief sdattendance  belief_attend   sdinc sdeduc employed  sdage sdage2 notlook  orthodox_i protestant_i catholic_i ///
>  
> female    typecity1 typecity2 i.year   i.ctry_survey_r [aw=S017] ,  vce(cluster ctry_survey_r)

. est sto abort

. 
. qui reg   sdind_re  sdbelief sdattendance  belief_attend   sdinc sdeduc employed  sdage sdage2 notlook  orthodox_i protestant_i catholic_i ///
>  
> female    typecity1 typecity2  i.year  i.ctry_survey_r [aw=S017] ,  vce(cluster ctry_survey_r)

. est sto resp

. 
. qui reg   sdinequality  sdbelief sdattendance  belief_attend    sdinc sdeduc employed  sdage sdage2 notlook  orthodox_i protestant_i catholic_
> i /// 
> female    typecity1 typecity2  i.year  i.ctry_survey_r [aw=S017] ,  vce(cluster ctry_survey_r)

. est sto inequal

. 
. coefplot ( gay \ abort \  resp \ inequal ), ///
> keep(sdbelief sdattendance belief_attend female sdeducation) grid(none) nolab aseq xline(0) byopts(rows(2)) coeflabels(sdattendance = "Attenda
> nce" sdbelief= "Belief"  belief_attend= "Belief*Attendance" female ="Female" sdeducation ="Education") eqlabels("Homosexuality" "Abortion"  //
> /
> "Responsibility" "Inequality") mcolor("black")sch(s2mono) xtitle("Coefficient")

. 
. graph export attitudes.png
(file attitudes.png written in PNG format)

. 
. *************** Figure (4) 
. reg  sdvote_loc c.sdbelief##c.sdattendance  sdincome_imp sdeduc employed  sdage sdage2 notlook  orthodox_i protestant_i catholic_i /// 
> female  typecity1 typecity2 i.year i.ctry_survey_r  [aw=S017] ,  vce(cluster ctry_survey_r)
(sum of wgt is 27,064.1282379126)
note: 390.ctry_survey_region omitted because of collinearity
note: 1005.ctry_survey_region omitted because of collinearity
note: 1516.ctry_survey_region omitted because of collinearity

Linear regression                               Number of obs     =     27,040
                                                F(14, 314)        =          .
                                                Prob > F          =          .
                                                R-squared         =     0.1760
                                                Root MSE          =     .87217

                                (Std. Err. adjusted for 315 clusters in ctry_survey_region)
-------------------------------------------------------------------------------------------
                          |               Robust
               sdvote_loc |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------------+----------------------------------------------------------------
                 sdbelief |   .0191359   .0137708     1.39   0.166    -.0079589    .0462306
             sdattendance |   .0596889   .0099748     5.98   0.000     .0400631    .0793148
                          |
c.sdbelief#c.sdattendance |   .0110207    .009662     1.14   0.255    -.0079897    .0300311
                          |
             sdincome_imp |   .0444416   .0100824     4.41   0.000      .024604    .0642793
              sdeducation |   .0987275   .0115046     8.58   0.000     .0760917    .1213634
                 employed |   .0520779    .032579     1.60   0.111    -.0120229    .1161787
                    sdage |   .8879801   .0675727    13.14   0.000     .7550276    1.020933
                   sdage2 |  -.6404136   .0640329   -10.00   0.000    -.7664014   -.5144257
               notlooking |   .0320368   .0452753     0.71   0.480    -.0570446    .1211182
               orthodox_i |  -.1117841   .0745719    -1.50   0.135     -.258508    .0349397
             protestant_i |   .1278806   .0627549     2.04   0.042     .0044073     .251354
               catholic_i |   .0860186     .03058     2.81   0.005     .0258511    .1461862
                   female |   .0159153   .0155299     1.02   0.306    -.0146405    .0464711
                typecity1 |   .1480283   .0243791     6.07   0.000     .1000614    .1959953
                typecity2 |    .065121    .022621     2.88   0.004      .020613    .1096289
                          |
                     year |
                    2012  |  -.5280031   .0755183    -6.99   0.000    -.6765889   -.3794172
                    2013  |   -.090858   .0378702    -2.40   0.017    -.1653695   -.0163466
                    2014  |  -.3481576   .0764874    -4.55   0.000    -.4986502    -.197665
                          |
       ctry_survey_region |
                       8  |  -.0425347   .0088059    -4.83   0.000    -.0598608   -.0252087
                       9  |  -.0773583   .0160986    -4.81   0.000    -.1090331   -.0456835
                      10  |   .0728123   .0149857     4.86   0.000     .0433272    .1022974
                      11  |  -.2132835   .0201511   -10.58   0.000    -.2529318   -.1736352
                      12  |   .2250087   .0272995     8.24   0.000     .1712957    .2787218
                      13  |  -1.778558    .012069  -147.37   0.000    -1.802304   -1.754811
                      14  |  -.0151218   .0162565    -0.93   0.353    -.0471073    .0168638
                      15  |  -.8971666   .0298129   -30.09   0.000    -.9558249   -.8385084
                      16  |  -.2324716   .0280141    -8.30   0.000    -.2875906   -.1773526
                      17  |   .2293089   .0292421     7.84   0.000     .1717736    .2868441
                      18  |   .0540822    .011692     4.63   0.000     .0310776    .0770867
                      47  |   .5030272   .0565613     8.89   0.000     .3917402    .6143142
                      48  |   .3397291   .0733321     4.63   0.000     .1954448    .4840135
                      49  |   .6281383   .0732925     8.57   0.000     .4839318    .7723449
                      50  |  -.4396028   .0708724    -6.20   0.000    -.5790477   -.3001579
                      51  |  -.2760778   .0748763    -3.69   0.000    -.4234005   -.1287551
                      52  |  -.1403647   .0761026    -1.84   0.066    -.2901002    .0093708
                      53  |   .6830409   .0753299     9.07   0.000     .5348257    .8312562
                      54  |   .4663034   .0740247     6.30   0.000     .3206564    .6119505
                     100  |   .2951814   .0748941     3.94   0.000     .1478237    .4425392
                     101  |   .3889417   .0742301     5.24   0.000     .2428904    .5349929
                     102  |   .4560498    .075624     6.03   0.000     .3072561    .6048436
                     103  |  -.6131209   .0746924    -8.21   0.000    -.7600818   -.4661601
                     104  |   .3104018   .0737222     4.21   0.000     .1653499    .4554536
                     105  |   .5022451   .0729277     6.89   0.000     .3587564    .6457337
                     106  |   .4370083   .0724533     6.03   0.000      .294453    .5795635
                     107  |   .3731535   .0740758     5.04   0.000     .2274058    .5189011
                     108  |   .5360254    .073067     7.34   0.000     .3922627    .6797881
                     109  |   .1267047    .076524     1.66   0.099      -.02386    .2772694
                     110  |  -.0857082   .0756896    -1.13   0.258    -.2346312    .0632147
                     111  |   .0491536   .0746106     0.66   0.511    -.0976463    .1959535
                     112  |   .1610286   .0732122     2.20   0.029     .0169801     .305077
                     113  |   .2506332   .0738406     3.39   0.001     .1053483     .395918
                     114  |   .2436779   .0741487     3.29   0.001     .0977867    .3895691
                     115  |   .1636113   .0726587     2.25   0.025     .0206518    .3065708
                     116  |   .3049907   .0745323     4.09   0.000     .1583449    .4516365
                     117  |   .1601434   .0732956     2.18   0.030     .0159308     .304356
                     118  |    .117542   .0719059     1.63   0.103    -.0239364    .2590203
                     119  |   .4401342   .0732786     6.01   0.000     .2959551    .5843134
                     120  |   .3468689   .0736417     4.71   0.000     .2019754    .4917625
                     211  |    .039465   .0720415     0.55   0.584    -.1022801      .18121
                     212  |   .0661066   .0715782     0.92   0.356    -.0747269    .2069401
                     213  |    .120309   .0718254     1.68   0.095    -.0210109    .2616288
                     214  |  -.0083454   .0727197    -0.11   0.909    -.1514249     .134734
                     240  |  -.1091531   .0721008    -1.51   0.131    -.2510148    .0327086
                     241  |   .1818961   .0722055     2.52   0.012     .0398283    .3239638
                     242  |   .0596159   .0711858     0.84   0.403    -.0804457    .1996774
                     243  |  -.0847191   .0715558    -1.18   0.237    -.2255085    .0560703
                     244  |   .1221775   .0751186     1.63   0.105    -.0256219    .2699769
                     245  |   .3982493   .0721856     5.52   0.000     .2562206     .540278
                     246  |   .0315028   .0725487     0.43   0.664    -.1112403    .1742458
                     247  |    -.26668   .0708052    -3.77   0.000    -.4059926   -.1273673
                     248  |   .2111698    .071161     2.97   0.003     .0711572    .3511823
                     249  |   .0419512    .074192     0.57   0.572     -.104025    .1879275
                     250  |    .206624   .0729304     2.83   0.005       .06313     .350118
                     251  |   .0580653   .0774487     0.75   0.454    -.0943187    .2104492
                     252  |   .2040823   .0764308     2.67   0.008     .0537011    .3544634
                     253  |   .2044472   .0731977     2.79   0.006     .0604273    .3484671
                     254  |   .3081297   .0716548     4.30   0.000     .1671456    .4491139
                     255  |   .0152008   .0742819     0.20   0.838    -.1309525     .161354
                     256  |  -.1742044   .0726283    -2.40   0.017     -.317104   -.0313048
                     257  |   .0168116   .0722519     0.23   0.816    -.1253474    .1589707
                     258  |  -.3581785   .0728239    -4.92   0.000     -.501463    -.214894
                     259  |  -.0511623    .071292    -0.72   0.474    -.1914328    .0891081
                     260  |   .2343829   .0725071     3.23   0.001     .0917217    .3770441
                     261  |   .2634963   .0730208     3.61   0.000     .1198244    .4071683
                     262  |   -.198996   .0722716    -2.75   0.006    -.3411939   -.0567981
                     297  |   -.180309   .0545057    -3.31   0.001    -.2875516   -.0730663
                     298  |  -.3756354   .0407952    -9.21   0.000    -.4559018   -.2953689
                     299  |   .0940471   .0382674     2.46   0.015     .0187541    .1693401
                     300  |   .0974885   .0433467     2.25   0.025     .0122017    .1827752
                     301  |   .0224845   .0393286     0.57   0.568    -.0548964    .0998654
                     302  |  -.0678875   .0677322    -1.00   0.317    -.2011538    .0653788
                     303  |  -.1047766   .0723526    -1.45   0.149    -.2471338    .0375806
                     304  |   .0879001   .0676013     1.30   0.194    -.0451087     .220909
                     329  |  -.9193923   .0380018   -24.19   0.000    -.9941627    -.844622
                     330  |   -.704092   .0328519   -21.43   0.000    -.7687297   -.6394544
                     331  |  -.6174882   .0381637   -16.18   0.000    -.6925771   -.5423994
                     332  |  -.8176223   .0372054   -21.98   0.000    -.8908257    -.744419
                     333  |  -.6599386   .0352108   -18.74   0.000    -.7292175   -.5906596
                     381  |  -.1620743   .0255325    -6.35   0.000    -.2123107   -.1118378
                     382  |    .024736   .0116744     2.12   0.035      .001766     .047706
                     383  |   -.040474   .0154452    -2.62   0.009    -.0708632   -.0100848
                     384  |  -.0204684   .0136946    -1.49   0.136    -.0474131    .0064764
                     385  |   .0203631   .0178218     1.14   0.254    -.0147022    .0554284
                     386  |   .2207704    .018375    12.01   0.000     .1846168     .256924
                     387  |   .1231942    .030205     4.08   0.000     .0637644    .1826241
                     388  |   .4836288   .0145836    33.16   0.000     .4549349    .5123227
                     389  |    .016025   .0166916     0.96   0.338    -.0168164    .0488664
                     390  |          0  (omitted)
                     424  |  -.1871512    .040792    -4.59   0.000    -.2674115   -.1068909
                     425  |  -.2939323   .0307453    -9.56   0.000    -.3544251   -.2334394
                     426  |  -.2598583   .0333018    -7.80   0.000    -.3253813   -.1943354
                     427  |  -.1314159   .0357876    -3.67   0.000    -.2018298    -.061002
                     428  |  -.4612168    .032818   -14.05   0.000    -.5257879   -.3966458
                     429  |  -.6429755    .035697   -18.01   0.000     -.713211   -.5727401
                     430  |  -.8727931   .0361797   -24.12   0.000    -.9439783   -.8016079
                     431  |  -.5580292   .0350834   -15.91   0.000    -.6270574    -.489001
                     432  |  -.4983628   .0339909   -14.66   0.000    -.5652414   -.4314842
                     433  |  -.7375209   .0361524   -20.40   0.000    -.8086525   -.6663894
                     434  |   -.437558   .0322561   -13.57   0.000    -.5010234   -.3740927
                     435  |  -.5410201   .0361623   -14.96   0.000    -.6121712   -.4698691
                     436  |   -.467774   .0358395   -13.05   0.000    -.5382899   -.3972581
                     437  |  -.3970429   .0367209   -10.81   0.000     -.469293   -.3247929
                     438  |  -.2615636   .0371387    -7.04   0.000    -.3346359   -.1884914
                     439  |  -.2546007   .0355227    -7.17   0.000    -.3244934    -.184708
                     609  |  -.1346271   .0718663    -1.87   0.062    -.2760275    .0067733
                     610  |   .0710994   .0710988     1.00   0.318    -.0687909    .2109898
                     611  |   .3579089   .0766391     4.67   0.000     .2071179       .5087
                     612  |   .0178674   .0734737     0.24   0.808    -.1266955    .1624304
                     613  |     .21459   .0732341     2.93   0.004     .0704983    .3586816
                     614  |    .281675   .0702991     4.01   0.000     .1433582    .4199919
                     615  |   .2549446   .0714438     3.57   0.000     .1143755    .3955138
                     616  |    .409123    .069789     5.86   0.000     .2718098    .5464363
                     617  |   .0530637   .0705926     0.75   0.453    -.0858306    .1919579
                     618  |  -.1856998   .0713435    -2.60   0.010    -.3260716    -.045328
                     619  |   .0513196   .0701893     0.73   0.465    -.0867812    .1894203
                     620  |  -.1006874   .0720224    -1.40   0.163    -.2423948      .04102
                     621  |   .3596899   .0710162     5.06   0.000     .2199623    .4994176
                     622  |   .0551299   .0719605     0.77   0.444    -.0864558    .1967155
                     623  |   .1620489   .0708596     2.29   0.023     .0226293    .3014686
                     624  |   .0581583   .0710343     0.82   0.414    -.0816051    .1979217
                     625  |   .0676793   .0722599     0.94   0.350    -.0744955     .209854
                     626  |  -.2697466   .0701944    -3.84   0.000    -.4078573   -.1316358
                     627  |  -.0668894   .0702844    -0.95   0.342    -.2051772    .0713984
                     628  |  -.0458611   .0715325    -0.64   0.522    -.1866047    .0948825
                     629  |   .0690874   .0719578     0.96   0.338     -.072493    .2106678
                     630  |   .2579683   .0716393     3.60   0.000     .1170145     .398922
                     631  |   .4587806   .0761307     6.03   0.000     .3089898    .6085713
                     632  |    .021245   .0703465     0.30   0.763    -.1171651    .1596551
                     633  |    .006641   .0744098     0.09   0.929    -.1397638    .1530458
                     634  |   .1856403   .0698706     2.66   0.008     .0481666     .323114
                     635  |   .4039156   .0713201     5.66   0.000     .2635899    .5442413
                     636  |   .1315748   .0709465     1.85   0.065    -.0080158    .2711655
                     637  |   .2712321   .0722261     3.76   0.000     .1291238    .4133405
                     638  |  -.0302498   .0715931    -0.42   0.673    -.1711126    .1106131
                     639  |   .3721165    .071712     5.19   0.000     .2310197    .5132133
                     640  |  -.0479345   .0698993    -0.69   0.493    -.1854647    .0895958
                     691  |   .0175997   .0773039     0.23   0.820    -.1344995    .1696989
                     692  |  -.0319424   .0766765    -0.42   0.677     -.182807    .1189222
                     693  |  -.0262399   .0778199    -0.34   0.736    -.1793542    .1268744
                     694  |  -.0477582   .0779954    -0.61   0.541    -.2012179    .1057015
                     695  |  -.1384075   .0776328    -1.78   0.076    -.2911538    .0143387
                     696  |  -.1185043   .0789091    -1.50   0.134    -.2737617    .0367531
                     697  |  -.0170288   .0770563    -0.22   0.825    -.1686407     .134583
                     698  |    .123567   .0778451     1.59   0.113     -.029597    .2767309
                     699  |   .1393175   .0762534     1.83   0.069    -.0107147    .2893497
                     700  |  -.0088014   .0786155    -0.11   0.911    -.1634811    .1458783
                     701  |   .0335498   .0788151     0.43   0.671    -.1215226    .1886223
                     702  |  -.0245707   .0758815    -0.32   0.746    -.1738711    .1247298
                     747  |  -.6370262    .037801   -16.85   0.000    -.7114015   -.5626509
                     748  |  -.5598086   .0349856   -16.00   0.000    -.6286445   -.4909727
                     749  |  -.9794689   .0461747   -21.21   0.000     -1.07032    -.888618
                     750  |  -.6744485   .0348918   -19.33   0.000    -.7430998   -.6057972
                     751  |  -.9431553   .0374326   -25.20   0.000    -1.016806   -.8695049
                     752  |  -.0162903   .0331813    -0.49   0.624    -.0815761    .0489955
                     753  |  -.6191363   .0374691   -16.52   0.000    -.6928585   -.5454142
                     754  |   -.639911   .0317669   -20.14   0.000    -.7024138   -.5774081
                     755  |  -.6569014   .0331363   -19.82   0.000    -.7220985   -.5917042
                     756  |  -.0127532   .0314705    -0.41   0.686    -.0746729    .0491665
                     757  |  -.6661153    .028915   -23.04   0.000    -.7230069   -.6092237
                     758  |  -.1066599   .0323014    -3.30   0.001    -.1702144   -.0431054
                     759  |  -.6817437   .0297414   -22.92   0.000    -.7402614    -.623226
                     760  |  -.9085878   .0351166   -25.87   0.000    -.9776815   -.8394941
                     761  |    -.77987    .032244   -24.19   0.000    -.8433115   -.7164284
                     762  |  -.9111336   .0383864   -23.74   0.000    -.9866607   -.8356064
                     763  |   -.305087    .041032    -7.44   0.000    -.3858193   -.2243546
                     764  |  -.5394526    .034038   -15.85   0.000    -.6064239   -.4724813
                     765  |  -.2932466   .0402164    -7.29   0.000    -.3723744   -.2141189
                     766  |  -.6508656   .0342977   -18.98   0.000     -.718348   -.5833832
                     767  |    -.29942   .0327739    -9.14   0.000    -.3639042   -.2349359
                     768  |  -.3603993   .0332593   -10.84   0.000    -.4258385   -.2949602
                     825  |   .6016549   .0722326     8.33   0.000     .4595339    .7437759
                     826  |   .5163897   .0739216     6.99   0.000     .3709455    .6618339
                     827  |   .6495527    .072523     8.96   0.000     .5068603    .7922451
                     828  |   .3880779    .074508     5.21   0.000     .2414798     .534676
                     829  |   .6183269   .0731737     8.45   0.000     .4743541    .7622998
                     830  |   .6594957   .0724524     9.10   0.000      .516942    .8020493
                     831  |    .705681   .0720356     9.80   0.000     .5639476    .8474144
                     832  |   .4866429   .0742924     6.55   0.000      .340469    .6328167
                     833  |   .4278326   .0754709     5.67   0.000       .27934    .5763252
                     834  |   .5187674   .0729816     7.11   0.000     .3751725    .6623623
                     835  |   .4852504   .0730141     6.65   0.000     .3415916    .6289091
                     836  |   .3076373   .0753468     4.08   0.000     .1593888    .4558857
                     837  |   .3373461   .0729086     4.63   0.000     .1938948    .4807973
                     838  |   .4090943   .0732336     5.59   0.000     .2650038    .5531849
                     839  |    .538868   .0720288     7.48   0.000      .397148    .6805881
                     840  |   .5111566   .0721096     7.09   0.000     .3692775    .6530357
                     841  |   .4936133   .0715233     6.90   0.000     .3528878    .6343388
                     842  |   .4376765   .0781014     5.60   0.000     .2840083    .5913447
                     843  |   .3022462   .0730677     4.14   0.000     .1584819    .4460105
                     873  |   .0512247   .0718841     0.71   0.477    -.0902106      .19266
                     874  |   .3644998   .0727688     5.01   0.000     .2213238    .5076759
                     875  |   .4223108     .07187     5.88   0.000     .2809031    .5637186
                     876  |   .4115908    .071592     5.75   0.000       .27073    .5524515
                     899  |  -.2345304   .0753433    -3.11   0.002    -.3827719   -.0862888
                     900  |   .0176216   .0752839     0.23   0.815    -.1305032    .1657463
                     901  |  -.3809002   .0762192    -5.00   0.000    -.5308652   -.2309353
                     902  |  -.1605341   .0747542    -2.15   0.033    -.3076165   -.0134517
                     903  |  -.0481301   .0742503    -0.65   0.517    -.1942212     .097961
                     904  |  -.0116504   .0745155    -0.16   0.876    -.1582633    .1349624
                     905  |   .1012005   .0748493     1.35   0.177    -.0460692    .2484701
                     906  |  -.1315188   .0727215    -1.81   0.071    -.2746019    .0115643
                     907  |  -.4302005   .0616004    -6.98   0.000    -.5514022   -.3089987
                     908  |  -.1026015   .0739607    -1.39   0.166    -.2481226    .0429197
                     909  |  -.0986535    .074883    -1.32   0.189    -.2459893    .0486823
                     910  |  -.0506326   .0761373    -0.67   0.507    -.2004364    .0991712
                     911  |  -.1605351   .0746061    -2.15   0.032    -.3073261    -.013744
                     912  |    -.23666   .0754592    -3.14   0.002    -.3851296   -.0881904
                     913  |  -.3935574   .0734738    -5.36   0.000    -.5381206   -.2489943
                     914  |  -.2338978   .0747486    -3.13   0.002    -.3809693   -.0868263
                     964  |   .2693987   .0153505    17.55   0.000     .2391958    .2996015
                     965  |   .4314956   .0103917    41.52   0.000     .4110495    .4519417
                     966  |   .4439411   .0117351    37.83   0.000     .4208518    .4670304
                     967  |   .4409852   .0150032    29.39   0.000     .4114658    .4705047
                     968  |  -.0286465   .0407102    -0.70   0.482    -.1087458    .0514529
                     969  |  -.1082182   .0209403    -5.17   0.000    -.1494192   -.0670172
                     970  |   .1333268    .012011    11.10   0.000     .1096947    .1569589
                     971  |   .1999201   .0239194     8.36   0.000     .1528576    .2469825
                     972  |   .3698576   .0094964    38.95   0.000     .3511729    .3885423
                     973  |    .570745   .0161643    35.31   0.000      .538941     .602549
                     974  |   .1662189   .0249498     6.66   0.000      .117129    .2153087
                     975  |   .2994552    .017856    16.77   0.000     .2643227    .3345877
                     976  |   .0084984   .0404835     0.21   0.834    -.0711549    .0881518
                     977  |   .2538439   .0165589    15.33   0.000     .2212636    .2864243
                     978  |   .3398625   .0692032     4.91   0.000     .2037019    .4760231
                     979  |  -.0181695   .0131138    -1.39   0.167    -.0439716    .0076325
                     980  |    .462225     .01463    31.59   0.000     .4334399    .4910102
                     981  |   .4546475   .0145077    31.34   0.000      .426103     .483192
                     982  |   .4831085   .0182144    26.52   0.000     .4472708    .5189462
                     983  |   .0149398   .0137253     1.09   0.277    -.0120655     .041945
                     984  |   .3963846    .071993     5.51   0.000     .2547349    .5380343
                     985  |   .3196838   .0214481    14.90   0.000     .2774837     .361884
                     986  |   .6165921   .0145873    42.27   0.000     .5878908    .6452934
                     987  |    .364874    .018713    19.50   0.000     .3280552    .4016928
                     988  |   .2065733   .0161622    12.78   0.000     .1747734    .2383732
                     989  |   .0141202    .041784     0.34   0.736    -.0680918    .0963323
                     990  |   .4983824   .0092871    53.66   0.000     .4801096    .5166552
                     991  |   .2737916   .0187035    14.64   0.000     .2369915    .3105917
                     992  |   .1341391   .0144299     9.30   0.000     .1057476    .1625306
                     993  |   .1693994   .0479307     3.53   0.000     .0750935    .2637052
                     994  |  -.7468118   .0237637   -31.43   0.000    -.7935679   -.7000556
                     995  |   .2727294   .0176794    15.43   0.000     .2379443    .3075145
                     996  |   .4270262   .0140999    30.29   0.000      .399284    .4547684
                     997  |   .7526455   .0161614    46.57   0.000     .7208472    .7844437
                     998  |   .0992464     .01816     5.47   0.000     .0635158     .134977
                     999  |   .5489946   .0174291    31.50   0.000     .5147019    .5832872
                    1000  |   .5889114    .014919    39.47   0.000     .5595576    .6182651
                    1001  |  -.0413887   .0090954    -4.55   0.000    -.0592844    -.023493
                    1002  |  -.3936951   .0296019   -13.30   0.000    -.4519383    -.335452
                    1003  |   .6004672   .0169656    35.39   0.000     .5670866    .6338479
                    1004  |  -.2959823    .019238   -15.39   0.000    -.3338341   -.2581306
                    1005  |          0  (omitted)
                    1063  |  -.7480813   .0308116   -24.28   0.000    -.8087045    -.687458
                    1064  |    -.44431   .0295121   -15.06   0.000    -.5023765   -.3862435
                    1065  |  -.6961924     .03299   -21.10   0.000    -.7611017   -.6312831
                    1066  |  -.8548814   .0260196   -32.86   0.000    -.9060763   -.8036866
                    1067  |  -1.080619   .0269103   -40.16   0.000    -1.133567   -1.027672
                    1068  |  -.5510026   .0289605   -19.03   0.000    -.6079837   -.4940215
                    1069  |  -.8742969   .0325769   -26.84   0.000    -.9383935   -.8102002
                    1070  |  -.8486534   .0355818   -23.85   0.000    -.9186624   -.7786445
                    1071  |  -.6934984   .0304637   -22.76   0.000    -.7534371   -.6335597
                    1072  |   -.706507   .0336324   -21.01   0.000    -.7726803   -.6403337
                    1073  |  -.7458929   .0302032   -24.70   0.000    -.8053192   -.6864666
                    1074  |  -.7112113   .0341811   -20.81   0.000    -.7784642   -.6439585
                    1102  |   -.803357   .0376368   -21.34   0.000    -.8774092   -.7293049
                    1103  |  -.4942526   .0373314   -13.24   0.000    -.5677039   -.4208012
                    1104  |  -.7584096   .0362482   -20.92   0.000    -.8297297   -.6870895
                    1105  |  -.8901839    .042054   -21.17   0.000    -.9729271   -.8074406
                    1106  |   -.644504   .0408761   -15.77   0.000    -.7249297   -.5640783
                    1107  |  -.3934562   .0373625   -10.53   0.000    -.4669687   -.3199437
                    1108  |  -.9987564   .0438978   -22.75   0.000    -1.085127   -.9123855
                    1109  |  -.3540067   .0383156    -9.24   0.000    -.4293946   -.2786189
                    1110  |  -.6766472   .0343412   -19.70   0.000    -.7442151   -.6090792
                    1235  |  -.0766305    .033996    -2.25   0.025    -.1435193   -.0097417
                    1236  |  -.0759485   .0337311    -2.25   0.025     -.142316   -.0095809
                    1237  |  -.3922765   .0264326   -14.84   0.000     -.444284   -.3402691
                    1238  |  -.3344159   .0268479   -12.46   0.000    -.3872404   -.2815915
                    1239  |  -.5132475   .0266574   -19.25   0.000    -.5656971   -.4607978
                    1240  |  -.3336435   .0280443   -11.90   0.000    -.3888219   -.2784651
                    1241  |  -.0767574   .0265307    -2.89   0.004    -.1289579   -.0245569
                    1242  |  -.2553718   .0269921    -9.46   0.000    -.3084801   -.2022635
                    1243  |  -.5704547   .0301783   -18.90   0.000    -.6298319   -.5110774
                    1244  |  -.3954361   .0281014   -14.07   0.000    -.4507269   -.3401452
                    1245  |   .0511064   .0254977     2.00   0.046     .0009384    .1012744
                    1246  |  -.1309006   .0321193    -4.08   0.000    -.1940969   -.0677043
                    1247  |  -.5757634   .0288081   -19.99   0.000    -.6324446   -.5190822
                    1248  |  -.3502947    .029421   -11.91   0.000     -.408182   -.2924074
                    1249  |  -.2399245   .0287699    -8.34   0.000    -.2965307   -.1833184
                    1250  |  -.1794484   .0339035    -5.29   0.000    -.2461551   -.1127418
                    1251  |  -.4336287   .0292355   -14.83   0.000    -.4911509   -.3761065
                    1252  |  -.0528281   .0267404    -1.98   0.049    -.1054411   -.0002151
                    1253  |  -.2468753   .0296573    -8.32   0.000    -.3052274   -.1885231
                    1332  |  -.4957424   .0519057    -9.55   0.000    -.5978692   -.3936155
                    1333  |  -.4727348   .0562559    -8.40   0.000     -.583421   -.3620486
                    1334  |  -.4381451   .0586346    -7.47   0.000    -.5535113   -.3227788
                    1335  |  -.3069468   .0574771    -5.34   0.000    -.4200357   -.1938579
                    1499  |  -.1605754   .0304424    -5.27   0.000    -.2204723   -.1006785
                    1500  |   .0130097   .0204957     0.63   0.526    -.0273166     .053336
                    1501  |   .2018282   .0260094     7.76   0.000     .1506534    .2530031
                    1502  |   .1383923   .0290038     4.77   0.000     .0813259    .1954588
                    1503  |   .1539685    .030699     5.02   0.000     .0935668    .2143702
                    1504  |   .1475962   .0241814     6.10   0.000     .1000181    .1951742
                    1505  |   .0881056   .0322268     2.73   0.007     .0246979    .1515133
                    1506  |  -.0082932   .0280311    -0.30   0.768    -.0634457    .0468593
                    1507  |   .2994624   .0239485    12.50   0.000     .2523426    .3465823
                    1508  |   .0849361   .0213001     3.99   0.000     .0430271    .1268452
                    1509  |  -.4141096     .03087   -13.41   0.000    -.4748477   -.3533714
                    1510  |  -.0776543   .0354626    -2.19   0.029    -.1474287   -.0078799
                    1511  |  -1.769166   .0350068   -50.54   0.000    -1.838044   -1.700289
                    1512  |   .0554861   .0238891     2.32   0.021     .0084832     .102489
                    1513  |   .4215755   .0314766    13.39   0.000     .3596437    .4835073
                    1514  |   .3171293   .0256953    12.34   0.000     .2665727     .367686
                    1516  |          0  (omitted)
                          |
                    _cons |    .315029   .0476247     6.61   0.000     .2213251    .4087329
-------------------------------------------------------------------------------------------

. est sto vote_loc

. 
. reg  sdvote_nat c.sdbelief##c.sdattendance  sdincome_imp sdeduc employed  sdage sdage2 notlook  orthodox_i protestant_i catholic_i /// 
> female  typecity1 typecity2 i.year i.ctry_survey_r   [aw=S017] ,  vce(cluster ctry_survey_r)
(sum of wgt is 27,013.6654451033)
note: 390.ctry_survey_region omitted because of collinearity
note: 1005.ctry_survey_region omitted because of collinearity
note: 1516.ctry_survey_region omitted because of collinearity

Linear regression                               Number of obs     =     26,989
                                                F(14, 314)        =          .
                                                Prob > F          =          .
                                                R-squared         =     0.1874
                                                Root MSE          =     .87323

                                (Std. Err. adjusted for 315 clusters in ctry_survey_region)
-------------------------------------------------------------------------------------------
                          |               Robust
               sdvote_nat |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------------+----------------------------------------------------------------
                 sdbelief |   .0114225   .0145778     0.78   0.434    -.0172601     .040105
             sdattendance |   .0466767   .0102059     4.57   0.000     .0265961    .0667573
                          |
c.sdbelief#c.sdattendance |   .0285845   .0100095     2.86   0.005     .0088904    .0482786
                          |
             sdincome_imp |   .0385456   .0094644     4.07   0.000     .0199238    .0571673
              sdeducation |   .1038883   .0112512     9.23   0.000      .081751    .1260256
                 employed |   .0809422   .0297025     2.73   0.007     .0225011    .1393832
                    sdage |   .9377534   .0749663    12.51   0.000     .7902537    1.085253
                   sdage2 |  -.6988902   .0702811    -9.94   0.000    -.8371716   -.5606089
               notlooking |   .0383104   .0414807     0.92   0.356    -.0433048    .1199255
               orthodox_i |  -.2339214   .1291416    -1.81   0.071    -.4880136    .0201708
             protestant_i |   .1335705   .0519493     2.57   0.011     .0313578    .2357831
               catholic_i |   .0928743   .0256998     3.61   0.000     .0423087      .14344
                   female |   .0202879   .0161142     1.26   0.209    -.0114175    .0519933
                typecity1 |   .1152895   .0272457     4.23   0.000     .0616823    .1688967
                typecity2 |   .0302107   .0253713     1.19   0.235    -.0197085    .0801299
                          |
                     year |
                    2012  |  -.4811173   .1270923    -3.79   0.000    -.7311774   -.2310572
                    2013  |  -.0815507   .0361853    -2.25   0.025    -.1527471   -.0103543
                    2014  |   -.204573   .1271325    -1.61   0.109    -.4547122    .0455662
                          |
       ctry_survey_region |
                       8  |   .1275752   .0085315    14.95   0.000     .1107891    .1443612
                       9  |   .0699457   .0164467     4.25   0.000      .037586    .1023055
                      10  |   .1124814   .0157307     7.15   0.000     .0815304    .1434323
                      11  |   .1800642   .0203454     8.85   0.000     .1400337    .2200947
                      12  |   .2674653   .0279103     9.58   0.000     .2125506    .3223801
                      13  |  -.7848154   .0097012   -80.90   0.000     -.803903   -.7657279
                      14  |  -.1064115   .0187889    -5.66   0.000    -.1433795   -.0694434
                      15  |   .0939237   .0302312     3.11   0.002     .0344425     .153405
                      16  |  -.3742595   .0296734   -12.61   0.000    -.4326433   -.3158756
                      17  |   .2746596   .0295529     9.29   0.000      .216513    .3328063
                      18  |   .0584117   .0104518     5.59   0.000     .0378472    .0789762
                      47  |   .5303725   .0941422     5.63   0.000     .3451432    .7156019
                      48  |   .4364495   .1278928     3.41   0.001     .1848144    .6880846
                      49  |   .5160763   .1272531     4.06   0.000     .2656998    .7664528
                      50  |   .6810094   .1234277     5.52   0.000     .4381594    .9238593
                      51  |   .5150533   .1306581     3.94   0.000     .2579772    .7721294
                      52  |   .4777349   .1323148     3.61   0.000     .2173992    .7380706
                      53  |   .6406307   .1293922     4.95   0.000     .3860454    .8952161
                      54  |   .5173004   .1280602     4.04   0.000     .2653359     .769265
                     100  |   .1660498   .1271113     1.31   0.192    -.0840477    .4161473
                     101  |   .2399287   .1239327     1.94   0.054    -.0039148    .4837723
                     102  |   .3208522   .1237725     2.59   0.010     .0773239    .5643805
                     103  |  -1.049722   .1251764    -8.39   0.000    -1.296013   -.8034318
                     104  |   .1059685   .1226287     0.86   0.388    -.1353092    .3472463
                     105  |   .3275888   .1225201     2.67   0.008     .0865245     .568653
                     106  |   .2728581   .1227843     2.22   0.027      .031274    .5144421
                     107  |   -.019331   .1262165    -0.15   0.878     -.267668     .229006
                     108  |    .354293   .1226279     2.89   0.004     .1130168    .5955692
                     109  |  -.1159252   .1306881    -0.89   0.376    -.3730602    .1412098
                     110  |  -.0476545   .1296473    -0.37   0.713    -.3027417    .2074326
                     111  |  -.0555284   .1246016    -0.45   0.656     -.300688    .1896312
                     112  |  -.0332491   .1256319    -0.26   0.791    -.2804358    .2139376
                     113  |   .0378744   .1245153     0.30   0.761    -.2071154    .2828642
                     114  |   .0993425    .126295     0.79   0.432    -.1491489     .347834
                     115  |    .044848   .1241686     0.36   0.718    -.1994597    .2891557
                     116  |   .1640928   .1228495     1.34   0.183    -.0776195    .4058051
                     117  |   .0535349   .1236684     0.43   0.665    -.1897884    .2968583
                     118  |   -.134286   .1253542    -1.07   0.285    -.3809263    .1123544
                     119  |   .2873859   .1240522     2.32   0.021     .0433073    .5314645
                     120  |   .1964123   .1226574     1.60   0.110     -.044922    .4377466
                     211  |   .0432893   .1241576     0.35   0.728    -.2009967    .2875753
                     212  |   .0376496   .1222454     0.31   0.758    -.2028742    .2781733
                     213  |   .2236465   .1239988     1.80   0.072     -.020327      .46762
                     214  |  -.0615619   .1236085    -0.50   0.619    -.3047675    .1816436
                     240  |  -.1724884   .1239842    -1.39   0.165    -.4164331    .0714564
                     241  |   .0594129   .1231176     0.48   0.630    -.1828269    .3016527
                     242  |  -.0083694   .1211994    -0.07   0.945     -.246835    .2300963
                     243  |  -.2307709   .1219039    -1.89   0.059    -.4706225    .0090808
                     244  |   .2323526   .1247528     1.86   0.063    -.0131044    .4778097
                     245  |   .3276901   .1240388     2.64   0.009      .083638    .5717423
                     246  |  -.1506366   .1231719    -1.22   0.222    -.3929833    .0917101
                     247  |  -.0402378   .1231943    -0.33   0.744    -.2826284    .2021528
                     248  |   .0175899   .1216228     0.14   0.885    -.2217087    .2568885
                     249  |    .038811   .1259473     0.31   0.758    -.2089964    .2866183
                     250  |   .1777207   .1235198     1.44   0.151    -.0653105    .4207518
                     251  |   .0272838   .1263465     0.22   0.829     -.221309    .2758766
                     252  |   -.105893   .1251962    -0.85   0.398    -.3522226    .1404365
                     253  |   .2127024   .1245096     1.71   0.089    -.0322761    .4576809
                     254  |   .2018884   .1234393     1.64   0.103    -.0409844    .4447612
                     255  |   .2030425   .1249829     1.62   0.105    -.0428673    .4489522
                     256  |  -.1999276   .1233123    -1.62   0.106    -.4425504    .0426953
                     257  |   .0207304   .1238699     0.17   0.867    -.2229896    .2644503
                     258  |  -.1612628    .124609    -1.29   0.197    -.4064369    .0839114
                     259  |   .0259027   .1213301     0.21   0.831    -.2128201    .2646254
                     260  |     .20832   .1260278     1.65   0.099    -.0396457    .4562857
                     261  |   .2244239    .122974     1.82   0.069    -.0175334    .4663812
                     262  |  -.0097039   .1239577    -0.08   0.938    -.2535967    .2341888
                     297  |  -.1257931     .09019    -1.39   0.164    -.3032462      .05166
                     298  |  -.3298185   .0566663    -5.82   0.000    -.4413122   -.2183248
                     299  |   .1229101   .0366137     3.36   0.001     .0508708    .1949493
                     300  |   .0950607   .0415284     2.29   0.023     .0133517    .1767698
                     301  |  -.0791635   .0380556    -2.08   0.038    -.1540397   -.0042872
                     302  |   .0237342   .1182421     0.20   0.841    -.2089128    .2563811
                     303  |  -.0931467   .1239095    -0.75   0.453    -.3369445    .1506511
                     304  |   .2674484   .1166371     2.29   0.023     .0379594    .4969374
                     329  |  -1.495156   .0615386   -24.30   0.000    -1.616236   -1.374076
                     330  |  -.8294311   .0302439   -27.42   0.000    -.8889375   -.7699247
                     331  |  -.9153615   .0474556   -19.29   0.000    -1.008733   -.8219904
                     332  |  -.9592197   .0338242   -28.36   0.000     -1.02577    -.892669
                     333  |  -.7602199   .0314731   -24.15   0.000    -.8221447   -.6982951
                     381  |  -.1948893   .0277235    -7.03   0.000    -.2494366   -.1403419
                     382  |   .0213154   .0117894     1.81   0.072    -.0018808    .0445116
                     383  |  -.0704695   .0156376    -4.51   0.000    -.1012371   -.0397018
                     384  |  -.0928456   .0130586    -7.11   0.000     -.118539   -.0671523
                     385  |   .0032551   .0176764     0.18   0.854    -.0315241    .0380343
                     386  |   .2220786   .0174107    12.76   0.000     .1878223     .256335
                     387  |   .0321799    .046595     0.69   0.490    -.0594979    .1238577
                     388  |   .4800045   .0157583    30.46   0.000     .4489992    .5110097
                     389  |   .0168787   .0161473     1.05   0.297    -.0148919    .0486493
                     390  |          0  (omitted)
                     424  |   -.068774   .0395564    -1.74   0.083    -.1466031    .0090551
                     425  |  -.4464775   .0275503   -16.21   0.000    -.5006839   -.3922711
                     426  |  -.1667015   .0319368    -5.22   0.000    -.2295387   -.1038643
                     427  |  -.2001171   .0304137    -6.58   0.000    -.2599575   -.1402768
                     428  |  -.4336963    .030042   -14.44   0.000    -.4928053   -.3745872
                     429  |  -.5448355    .034279   -15.89   0.000    -.6122811   -.4773898
                     430  |  -.6321333   .0345806   -18.28   0.000    -.7001723   -.5640943
                     431  |  -.3919629   .0336675   -11.64   0.000    -.4582052   -.3257206
                     432  |  -.3093216   .0326988    -9.46   0.000     -.373658   -.2449852
                     433  |  -.6380665   .0371265   -17.19   0.000    -.7111146   -.5650184
                     434  |  -.2514716   .0286722    -8.77   0.000    -.3078856   -.1950576
                     435  |  -.3904805   .0339942   -11.49   0.000    -.4573656   -.3235953
                     436  |  -.3776925   .0317964   -11.88   0.000    -.4402534   -.3151315
                     437  |   -.159983   .0338797    -4.72   0.000     -.226643    -.093323
                     438  |  -.4154067   .0356995   -11.64   0.000    -.4856471   -.3451662
                     439  |  -.1913202   .0328672    -5.82   0.000    -.2559879   -.1266525
                     609  |   .2929099   .1263924     2.32   0.021     .0442269    .5415928
                     610  |  -.0620989   .1215543    -0.51   0.610    -.3012628     .177065
                     611  |   .3311094   .1293016     2.56   0.011     .0767024    .5855164
                     612  |   .0482562   .1240042     0.39   0.697    -.1957279    .2922403
                     613  |   .2656541   .1240048     2.14   0.033     .0216688    .5096394
                     614  |   .0823017   .1210745     0.68   0.497    -.1559182    .3205216
                     615  |   .3280475   .1257536     2.61   0.010     .0806213    .5754738
                     616  |   .3783587   .1208287     3.13   0.002     .1406225     .616095
                     617  |  -.0149957   .1225813    -0.12   0.903    -.2561802    .2261889
                     618  |  -.1607441    .124248    -1.29   0.197     -.405208    .0837197
                     619  |   .0097792   .1222266     0.08   0.936    -.2307076    .2502659
                     620  |  -.0139501   .1248042    -0.11   0.911    -.2595082    .2316081
                     621  |   .3273345   .1253631     2.61   0.009     .0806767    .5739924
                     622  |   .0959237   .1234293     0.78   0.438    -.1469292    .3387767
                     623  |    .118278   .1230717     0.96   0.337    -.1238715    .3604275
                     624  |  -.0087075   .1228798    -0.07   0.944    -.2504794    .2330645
                     625  |    .027757   .1231692     0.23   0.822    -.2145842    .2700982
                     626  |  -.1918421   .1225213    -1.57   0.118    -.4329087    .0492245
                     627  |  -.1233919   .1206424    -1.02   0.307    -.3607615    .1139777
                     628  |  -.0370402   .1269286    -0.29   0.771    -.2867782    .2126977
                     629  |   .0628323   .1261776     0.50   0.619    -.1854281    .3110926
                     630  |  -.0170703   .1263981    -0.14   0.893    -.2657647    .2316241
                     631  |   .5731151   .1295187     4.42   0.000     .3182808    .8279493
                     632  |  -.0462709   .1232392    -0.38   0.708    -.2887499     .196208
                     633  |    .003845   .1280833     0.03   0.976     -.248165    .2558551
                     634  |  -.0076357   .1223231    -0.06   0.950    -.2483124    .2330409
                     635  |    .453598   .1236714     3.67   0.000     .2102686    .6969274
                     636  |   .1694064   .1223915     1.38   0.167    -.0714047    .4102175
                     637  |   .2437675   .1246232     1.96   0.051    -.0014345    .4889696
                     638  |   .0174485   .1254234     0.14   0.889    -.2293279     .264225
                     639  |   .3420702   .1251485     2.73   0.007     .0958346    .5883059
                     640  |   .0198365   .1203332     0.16   0.869    -.2169248    .2565978
                     691  |   .1494884    .129749     1.15   0.250    -.1057989    .4047757
                     692  |   .1458974   .1286456     1.13   0.258    -.1072189    .3990137
                     693  |   .2754689   .1306101     2.11   0.036     .0184874    .5324505
                     694  |   .1193531   .1299095     0.92   0.359    -.1362501    .3749562
                     695  |   .0751918   .1295499     0.58   0.562    -.1797039    .3300875
                     696  |  -.0644959   .1307381    -0.49   0.622    -.3217294    .1927375
                     697  |    .071157   .1288662     0.55   0.581    -.1823934    .3247075
                     698  |   .1758757   .1294911     1.36   0.175    -.0789043    .4306556
                     699  |   .1752476   .1276017     1.37   0.171    -.0758148      .42631
                     700  |   .1175181   .1304492     0.90   0.368    -.1391468    .3741831
                     701  |   .1225686   .1314178     0.93   0.352    -.1360023    .3811394
                     702  |   .0622246   .1274533     0.49   0.626    -.1885459    .3129951
                     747  |  -.4038549   .0354477   -11.39   0.000    -.4735999   -.3341098
                     748  |  -.2796648   .0332215    -8.42   0.000    -.3450298   -.2142999
                     749  |  -.4086961   .0461426    -8.86   0.000    -.4994839   -.3179083
                     750  |  -.3278007   .0320064   -10.24   0.000    -.3907748   -.2648265
                     751  |  -.2336967    .035156    -6.65   0.000    -.3028679   -.1645256
                     752  |  -.0069771   .0303787    -0.23   0.818    -.0667486    .0527944
                     753  |  -.3373326   .0376026    -8.97   0.000    -.4113175   -.2633477
                     754  |   -.302143   .0296888   -10.18   0.000    -.3605572   -.2437289
                     755  |  -.5362067   .0308079   -17.40   0.000    -.5968226   -.4755907
                     756  |  -.0067316   .0292765    -0.23   0.818    -.0643344    .0508712
                     757  |  -.1115315   .0294781    -3.78   0.000     -.169531   -.0535321
                     758  |  -.2827983   .0307888    -9.19   0.000    -.3433767   -.2222198
                     759  |   -.183759   .0283228    -6.49   0.000    -.2394855   -.1280325
                     760  |  -.3940992   .0344797   -11.43   0.000    -.4619398   -.3262587
                     761  |  -.3746211   .0304585   -12.30   0.000    -.4345497   -.3146925
                     762  |  -.6421676   .0367094   -17.49   0.000    -.7143952   -.5699401
                     763  |  -.3759342   .0354357   -10.61   0.000    -.4456556   -.3062129
                     764  |  -.3183887   .0314122   -10.14   0.000    -.3801938   -.2565837
                     765  |  -.1688254   .0394013    -4.28   0.000    -.2463494   -.0913014
                     766  |  -.3956838   .0309133   -12.80   0.000    -.4565071   -.3348604
                     767  |  -.1506635   .0315356    -4.78   0.000    -.2127113   -.0886157
                     768  |  -.3009325   .0311523    -9.66   0.000    -.3622262   -.2396388
                     825  |   .4891409   .1241894     3.94   0.000     .2447922    .7334895
                     826  |   .4961425   .1292524     3.84   0.000     .2418322    .7504529
                     827  |   .6127897   .1265778     4.84   0.000     .3637419    .8618375
                     828  |   .3606362    .129252     2.79   0.006     .1063267    .6149457
                     829  |   .5872449   .1301189     4.51   0.000     .3312298      .84326
                     830  |   .5605321   .1262468     4.44   0.000     .3121355    .8089286
                     831  |   .6660755   .1222465     5.45   0.000     .4255498    .9066013
                     832  |   .5343241   .1308404     4.08   0.000     .2768894    .7917588
                     833  |   .3971191   .1317921     3.01   0.003      .137812    .6564263
                     834  |   .5281947   .1261208     4.19   0.000      .280046    .7763434
                     835  |   .4426458   .1259283     3.52   0.001     .1948758    .6904157
                     836  |   .2905455   .1310524     2.22   0.027     .0326937    .5483973
                     837  |   .4564909   .1280178     3.57   0.000     .2046097     .708372
                     838  |   .3668859   .1286341     2.85   0.005     .1137922    .6199796
                     839  |   .5186309    .127464     4.07   0.000     .2678394    .7694223
                     840  |   .4917744   .1271946     3.87   0.000     .2415129    .7420358
                     841  |   .4661428   .1275811     3.65   0.000      .215121    .7171646
                     842  |   .4055268   .1329703     3.05   0.002     .1439015    .6671522
                     843  |   .2954671   .1244318     2.37   0.018     .0506417    .5402926
                     873  |  -.0512207   .1239018    -0.41   0.680    -.2950034     .192562
                     874  |   .3115746   .1248473     2.50   0.013     .0659317    .5572176
                     875  |   .3284864   .1224346     2.68   0.008     .0875906    .5693823
                     876  |   .3668891   .1234437     2.97   0.003     .1240078    .6097704
                     899  |  -.1718988   .1278049    -1.35   0.180     -.423361    .0795633
                     900  |   .0444026   .1270497     0.35   0.727    -.2055737    .2943789
                     901  |  -.4267336   .1310678    -3.26   0.001    -.6846157   -.1688515
                     902  |  -.2214315   .1254614    -1.76   0.079    -.4682828    .0254198
                     903  |  -.0814402   .1287062    -0.63   0.527    -.3346757    .1717954
                     904  |  -.0598402   .1267917    -0.47   0.637    -.3093089    .1896285
                     905  |   .0897988   .1269139     0.71   0.480    -.1599104    .3395079
                     906  |  -.1349685   .1249399    -1.08   0.281    -.3807937    .1108567
                     907  |  -.4816186   .1042579    -4.62   0.000    -.6867509   -.2764863
                     908  |  -.1738052   .1267445    -1.37   0.171    -.4231811    .0755708
                     909  |  -.1405187   .1272366    -1.10   0.270    -.3908627    .1098253
                     910  |  -.0253804   .1298867    -0.20   0.845    -.2809387    .2301779
                     911  |  -.0662747   .1272957    -0.52   0.603    -.3167351    .1841857
                     912  |  -.1513284   .1277899    -1.18   0.237    -.4027611    .1001042
                     913  |  -.4225221   .1266477    -3.34   0.001    -.6717074   -.1733368
                     914  |  -.2310662   .1253909    -1.84   0.066    -.4777788    .0156464
                     964  |    .348561   .0156143    22.32   0.000     .3178392    .3792828
                     965  |    .634147   .0102709    61.74   0.000     .6139385    .6543555
                     966  |   .5447844   .0128198    42.50   0.000     .5195609     .570008
                     967  |     .57519   .0169459    33.94   0.000     .5418483    .6085318
                     968  |  -.0341549    .064416    -0.53   0.596    -.1608965    .0925867
                     969  |  -.0387703   .0286023    -1.36   0.176    -.0950467     .017506
                     970  |   .1707752    .012332    13.85   0.000     .1465115    .1950389
                     971  |     .29979   .0286893    10.45   0.000     .2433425    .3562376
                     972  |   .4517489   .0096107    47.00   0.000     .4328394    .4706584
                     973  |   .5664543   .0168898    33.54   0.000     .5332228    .5996858
                     974  |   .3186523   .0380604     8.37   0.000     .2437667    .3935379
                     975  |   .0150061   .0194046     0.77   0.440    -.0231734    .0531856
                     976  |   .0235471    .068786     0.34   0.732    -.1117927    .1588869
                     977  |   .2386445   .0225403    10.59   0.000     .1942954    .2829936
                     978  |   .3497738   .1136191     3.08   0.002     .1262229    .5733248
                     979  |   .0147732   .0135292     1.09   0.276    -.0118461    .0413924
                     980  |   .5312234    .013771    38.58   0.000     .5041284    .5583184
                     981  |   .5812009   .0152504    38.11   0.000     .5511951    .6112067
                     982  |   .6001065   .0199769    30.04   0.000      .560801     .639412
                     983  |   .1003772   .0144314     6.96   0.000     .0719827    .1287717
                     984  |   .1944338   .1247868     1.56   0.120      -.05109    .4399577
                     985  |    .353115   .0256863    13.75   0.000      .302576    .4036541
                     986  |    .720169   .0141507    50.89   0.000     .6923268    .7480113
                     987  |   .4776746   .0209112    22.84   0.000     .4365307    .5188184
                     988  |   .1456582   .0204623     7.12   0.000     .1053976    .1859189
                     989  |   .0818102   .0687997     1.19   0.235    -.0535565     .217177
                     990  |   .5329176   .0111676    47.72   0.000     .5109447    .5548905
                     991  |    .251774   .0207039    12.16   0.000     .2110382    .2925099
                     992  |   .1858143   .0178384    10.42   0.000     .1507165    .2209122
                     993  |   .1241033   .0822464     1.51   0.132    -.0377205    .2859271
                     994  |  -.6417756   .0327226   -19.61   0.000    -.7061588   -.5773924
                     995  |   .2550001    .018129    14.07   0.000     .2193305    .2906696
                     996  |   .3284745   .0170375    19.28   0.000     .2949525    .3619966
                     997  |   .9135815    .016293    56.07   0.000     .8815243    .9456387
                     998  |   .2812662   .0249665    11.27   0.000     .2321434     .330389
                     999  |   .5497445   .0219717    25.02   0.000     .5065142    .5929749
                    1000  |   .5578708   .0149296    37.37   0.000     .5284962    .5872454
                    1001  |  -.0213245   .0089009    -2.40   0.017    -.0388374   -.0038116
                    1002  |  -.3069395   .0324647    -9.45   0.000    -.3708152   -.2430637
                    1003  |   .5714052   .0184287    31.01   0.000     .5351458    .6076645
                    1004  |  -.1713122   .0220886    -7.76   0.000    -.2147725   -.1278519
                    1005  |          0  (omitted)
                    1063  |  -.6867997   .0310438   -22.12   0.000    -.7478798   -.6257195
                    1064  |  -.5047451   .0286369   -17.63   0.000    -.5610895   -.4484007
                    1065  |  -.6676289   .0338376   -19.73   0.000    -.7342061   -.6010518
                    1066  |  -.7986651   .0255881   -31.21   0.000    -.8490109   -.7483193
                    1067  |  -1.048205   .0251846   -41.62   0.000    -1.097757   -.9986534
                    1068  |  -.5193953   .0258518   -20.09   0.000      -.57026   -.4685305
                    1069  |  -.8846603    .031134   -28.41   0.000     -.945918   -.8234027
                    1070  |  -.7525351   .0337681   -22.29   0.000    -.8189754   -.6860949
                    1071  |  -.7414787   .0304491   -24.35   0.000    -.8013888   -.6815685
                    1072  |  -.7668951   .0344285   -22.28   0.000    -.8346348   -.6991553
                    1073  |  -.6100838   .0276033   -22.10   0.000    -.6643946   -.5557729
                    1074  |  -.6814377   .0337649   -20.18   0.000    -.7478718   -.6150036
                    1102  |  -.7565533   .0403777   -18.74   0.000    -.8359982   -.6771083
                    1103  |  -.4539694   .0396813   -11.44   0.000    -.5320441   -.3758946
                    1104  |  -.6717783   .0392022   -17.14   0.000    -.7489106   -.5946461
                    1105  |  -.7942538   .0448361   -17.71   0.000     -.882471   -.7060365
                    1106  |  -.6514505   .0413658   -15.75   0.000    -.7328398   -.5700613
                    1107  |  -.1891044   .0390171    -4.85   0.000    -.2658724   -.1123364
                    1108  |  -.8193383   .0449688   -18.22   0.000    -.9078165   -.7308601
                    1109  |  -.1910274   .0398358    -4.80   0.000    -.2694062   -.1126486
                    1110  |  -.6897753   .0380455   -18.13   0.000    -.7646316    -.614919
                    1235  |   .0457966   .0309456     1.48   0.140    -.0150903    .1066835
                    1236  |  -.1009909   .0306858    -3.29   0.001    -.1613666   -.0406152
                    1237  |  -.0402082   .0236876    -1.70   0.091    -.0868147    .0063983
                    1238  |  -.2115819   .0265221    -7.98   0.000    -.2637655   -.1593983
                    1239  |   .0241195   .0236153     1.02   0.308    -.0223448    .0705837
                    1240  |  -.3376521   .0251229   -13.44   0.000    -.3870827   -.2882215
                    1241  |  -.0235719   .0235883    -1.00   0.318    -.0699831    .0228393
                    1242  |  -.1970464   .0233839    -8.43   0.000    -.2430553   -.1510375
                    1243  |  -.1488983   .0255602    -5.83   0.000    -.1991893   -.0986073
                    1244  |   .0395461   .0242487     1.63   0.104    -.0081644    .0872566
                    1245  |  -.0720032    .022747    -3.17   0.002     -.116759   -.0272473
                    1246  |  -.0514654   .0283224    -1.82   0.070    -.1071912    .0042603
                    1247  |  -.0689682   .0255627    -2.70   0.007     -.119264   -.0186724
                    1248  |  -.1520103   .0248271    -6.12   0.000    -.2008587   -.1031618
                    1249  |  -.1295794   .0245269    -5.28   0.000    -.1778373   -.0813216
                    1250  |  -.2322362   .0306809    -7.57   0.000    -.2926024     -.17187
                    1251  |    .369794   .0242396    15.26   0.000     .3221013    .4174866
                    1252  |   .1587916   .0227699     6.97   0.000     .1139907    .2035925
                    1253  |  -.1679383   .0263391    -6.38   0.000    -.2197617    -.116115
                    1332  |  -.3980473    .084813    -4.69   0.000    -.5649209   -.2311737
                    1333  |  -.3911145   .0943076    -4.15   0.000    -.5766692   -.2055598
                    1334  |  -.3197225   .0978581    -3.27   0.001     -.512263    -.127182
                    1335  |  -.2091062   .0973624    -2.15   0.033    -.4006714    -.017541
                    1499  |   .0431935   .0296475     1.46   0.146    -.0151394    .1015263
                    1500  |    -.09924   .0207061    -4.79   0.000    -.1399802   -.0584997
                    1501  |   .2165721   .0241733     8.96   0.000       .16901    .2641342
                    1502  |   .1347055   .0246533     5.46   0.000      .086199    .1832121
                    1503  |   .1676853   .0306495     5.47   0.000     .1073809    .2279896
                    1504  |    .176253   .0229257     7.69   0.000     .1311457    .2213604
                    1505  |   .0693254   .0301217     2.30   0.022     .0100594    .1285913
                    1506  |   .0127481   .0260636     0.49   0.625    -.0385332    .0640294
                    1507  |  -.1535729   .0214439    -7.16   0.000    -.1957648   -.1113811
                    1508  |    .076971   .0185269     4.15   0.000     .0405184    .1134235
                    1509  |  -.4209553   .0261007   -16.13   0.000    -.4723097   -.3696009
                    1510  |   -.075193    .033988    -2.21   0.028    -.1420661   -.0083199
                    1511  |  -.0756704   .0331853    -2.28   0.023    -.1409641   -.0103767
                    1512  |    .216326   .0217719     9.94   0.000     .1734888    .2591631
                    1513  |   .4044827   .0262034    15.44   0.000     .3529263    .4560392
                    1514  |   .3395785   .0222739    15.25   0.000     .2957536    .3834034
                    1516  |          0  (omitted)
                          |
                    _cons |   .2208035   .0457505     4.83   0.000     .1307873    .3108198
-------------------------------------------------------------------------------------------

. est sto vote_nat

. 
. 
. coefplot ( vote_nat \ vote_loc ), ///
> keep(sdbelief sdattendance c.sdbelief#c.sdattendance  sdeducation) grid(none) nolab aseq xline(0) byopts(rows(2)) coeflabels(sdattendance = "A
> ttendance" sdbelief= "Belief"  c.sdbelief#c.sdattendance= "Belief*Attendance" sdeducation ="Education") eqlabels("Vote National"  ///
> "Vote Local") mcolor("black") sch(s2mono) xtitle("Coefficient")

. 
. graph export vote_plot.png
(file vote_plot.png written in PNG format)

. 
. ************* Figure (5)
. //Import country-level data with voting fractionalization measures
. use votingfrac.dta, replace

. 
. //Plotting the relationships for the full data and its regional subsets
. twoway(scatter sdPVP sdcorr_part_spirit2, ml(iso3c)ytitle(PVP)xtitle(Religious Cohesion)sch(s2mono)legend(off)title(All countries (98 surveys)
> ))(lfit  sdPVP sdcorr_part_spirit2 )

. graph export pvpall.png, replace
(note: file pvpall.png not found)
(file pvpall.png written in PNG format)

. 
. twoway(scatter sdPVP sdcorr_part_spirit2 if neoeurope==1, ml(iso3c)ytitle(PVP)xtitle(Religious Cohesion)sch(s2mono)legend(off)title(Neo-Europe
>  (38 surveys)))(lfit  sdPVP sdcorr_part_spirit2 )

. graph export pvp_neoeurope.png, replace
(note: file pvp_neoeurope.png not found)
(file pvp_neoeurope.png written in PNG format)

. 
. twoway(scatter sdPVP sdcorr_part_spirit2 if easteurope==1, ml(iso3c)ytitle(PVP)xtitle(Religious Cohesion)sch(s2mono)legend(off)title(East/Cent
> ral Europe (21 surveys)))(lfit  sdPVP sdcorr_part_spirit2 )

. graph export pvp_easteurope.png, replace
(note: file pvp_easteurope.png not found)
(file pvp_easteurope.png written in PNG format)

. 
. twoway(scatter sdPVP sdcorr_part_spirit2 if latinam==1, ml(iso3c)ytitle(PVP)xtitle(Religious Cohesion)sch(s2mono)legend(off)title(Latin Americ
> a (32 surveys)))(lfit  sdPVP sdcorr_part_spirit2 )

. graph export pvp_latinam.png, replace
(note: file pvp_latinam.png not found)
(file pvp_latinam.png written in PNG format)

. 
. ************* Table (1)
. reg sdPVP sdcorr_part_spirit2   sdreligfrac4 easteur latinam neoeurope africa, cluster(country) 

Linear regression                               Number of obs     =         98
                                                F(4, 38)          =          .
                                                Prob > F          =          .
                                                R-squared         =     0.3691
                                                Root MSE          =     .82105

                                      (Std. Err. adjusted for 39 clusters in country)
-------------------------------------------------------------------------------------
                    |               Robust
              sdPVP |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
sdcorr_part_spirit2 |   .2680857   .0923508     2.90   0.006     .0811314      .45504
       sdreligfrac4 |   .5763965   .0913272     6.31   0.000     .3915143    .7612787
         easteurope |   .9126458   .2845809     3.21   0.003     .3365418     1.48875
            latinam |   .1889817   .2887305     0.65   0.517    -.3955226     .773486
          neoeurope |   1.083935   .3923746     2.76   0.009     .2896145    1.878256
             africa |  -.2239092   .2659369    -0.84   0.405    -.7622703    .3144519
              _cons |  -.6471674   .2427939    -2.67   0.011    -1.138678   -.1556569
-------------------------------------------------------------------------------------

. eststo m1

. 
. reg sdPVP sdcorr_part_spirit2   sdreligfrac4  sdlndm sdlngdp_l5   sdgini_ml5  sdover65 sdstatefund_ch sdherfrel00   catholic orthodox easteur 
> latinam neoeurope africa i.year, cluster(country) 

Linear regression                               Number of obs     =         96
                                                F(31, 37)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.7065
                                                Root MSE          =     .68807

                                      (Std. Err. adjusted for 38 clusters in country)
-------------------------------------------------------------------------------------
                    |               Robust
              sdPVP |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
sdcorr_part_spirit2 |   .2642053   .1262816     2.09   0.043     .0083345     .520076
       sdreligfrac4 |   .9121262   .1584781     5.76   0.000      .591019    1.233233
             sdlndm |   .2638267   .0945924     2.79   0.008     .0721644    .4554891
         sdlngdp_l5 |    .066004   .1940546     0.34   0.736    -.3271879    .4591959
         sdgini_ml5 |   .1444207   .1105857     1.31   0.200    -.0796472    .3684886
           sdover65 |   .9488985   .2122332     4.47   0.000     .5188732    1.378924
     sdstatefund_ch |  -.1844976   .1228943    -1.50   0.142    -.4335051      .06451
        sdherfrel00 |   .2918735   .1198697     2.43   0.020     .0489943    .5347526
           catholic |   .0308676   .3398438     0.09   0.928    -.6577213    .7194565
           orthodox |  -.7161785    .396772    -1.81   0.079    -1.520115    .0877579
         easteurope |  -.6576369   .6413508    -1.03   0.312    -1.957137    .6418632
            latinam |  -1.236108   .4059161    -3.05   0.004    -2.058572   -.4136441
          neoeurope |  -.9846805   .6291077    -1.57   0.126    -2.259374    .2900128
             africa |  -1.783803   .7194868    -2.48   0.018    -3.241621   -.3259838
                    |
               year |
              1991  |  -.8936052   .3373631    -2.65   0.012    -1.577168   -.2100427
              1995  |  -.7974005    .796592    -1.00   0.323    -2.411449    .8166483
              1996  |   -1.14211   .3191093    -3.58   0.001    -1.788687   -.4955328
              1997  |  -1.047687   .4842628    -2.16   0.037    -2.028896   -.0664771
              1998  |  -1.381566   .4707322    -2.93   0.006     -2.33536   -.4277715
              1999  |  -1.268638   .9689415    -1.31   0.199      -3.2319    .6946237
              2000  |  -1.691167   .3935341    -4.30   0.000    -2.488543   -.8937913
              2001  |  -.7825164   .6906098    -1.13   0.264    -2.181825    .6167921
              2002  |  -.8600547   .4879961    -1.76   0.086    -1.848829    .1287194
              2004  |  -.2807472   .4435613    -0.63   0.531    -1.179488    .6179934
              2005  |  -1.539485   .2679214    -5.75   0.000    -2.082346    -.996625
              2006  |  -1.332336   .3352527    -3.97   0.000    -2.011622   -.6530496
              2007  |  -.9026309   .6240356    -1.45   0.156    -2.167047    .3617852
              2009  |  -1.428672   .7102142    -2.01   0.052    -2.867703    .0103583
              2011  |  -1.397241   .3203841    -4.36   0.000    -2.046401   -.7480815
              2012  |  -1.854807   .3159652    -5.87   0.000    -2.495013     -1.2146
              2013  |  -1.968822    .432805    -4.55   0.000    -2.845768   -1.091875
              2014  |  -.8713481    .359786    -2.42   0.020    -1.600344   -.1423525
              2017  |  -1.235612   .5261735    -2.35   0.024    -2.301741   -.1694832
              2018  |  -1.743744   .3398157    -5.13   0.000    -2.432276   -1.055212
              2019  |  -1.541194   .4106206    -3.75   0.001    -2.373191    -.709198
              2020  |  -1.830345   .2316449    -7.90   0.000    -2.299702   -1.360988
                    |
              _cons |   2.440444   .7450937     3.28   0.002     .9307411    3.950148
-------------------------------------------------------------------------------------

. eststo m2

. 
. reg sdPVP sdcorr_part_spirit2   sdreligfrac4     sdlndm    sdover65  sdherfrel00     easteur latinam neoeurope africa  i.year  , cluster(count
> ry) 

Linear regression                               Number of obs     =         98
                                                F(26, 38)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.6416
                                                Root MSE          =     .72669

                                      (Std. Err. adjusted for 39 clusters in country)
-------------------------------------------------------------------------------------
                    |               Robust
              sdPVP |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
sdcorr_part_spirit2 |   .3801963   .1460192     2.60   0.013      .084596    .6757966
       sdreligfrac4 |   .8180467   .1491936     5.48   0.000     .5160201    1.120073
             sdlndm |   .2092066    .063284     3.31   0.002     .0810949    .3373183
           sdover65 |   .8121514   .2058955     3.94   0.000     .3953378    1.228965
        sdherfrel00 |   .1989634   .1045726     1.90   0.065    -.0127328    .4106596
         easteurope |  -1.328745   .5664826    -2.35   0.024     -2.47553   -.1819613
            latinam |  -1.051602   .4376041    -2.40   0.021    -1.937485   -.1657188
          neoeurope |  -1.174575   .5298227    -2.22   0.033    -2.247145   -.1020054
             africa |  -1.243764   .5644849    -2.20   0.034    -2.386504    -.101024
                    |
               year |
              1991  |  -.6526228   .3434547    -1.90   0.065     -1.34791    .0426649
              1995  |  -.8727911   .6845392    -1.28   0.210    -2.258568    .5129861
              1996  |  -1.307578   .3278849    -3.99   0.000    -1.971346   -.6438098
              1997  |   -1.10346   .3440069    -3.21   0.003    -1.799865   -.4070542
              1998  |  -1.456428   .4702262    -3.10   0.004    -2.408351   -.5045047
              1999  |  -1.443985   .6586203    -2.19   0.035    -2.777292   -.1106776
              2000  |  -1.372189   .4064317    -3.38   0.002    -2.194967   -.5494114
              2001  |  -.9325637   .7079534    -1.32   0.196     -2.36574     .500613
              2002  |  -.9601831   .4478596    -2.14   0.038    -1.866827   -.0535388
              2004  |  -.4968946   .5497659    -0.90   0.372    -1.609838    .6160484
              2005  |  -1.540854   .3109052    -4.96   0.000    -2.170249   -.9114596
              2006  |  -1.395915   .3192851    -4.37   0.000    -2.042273   -.7495557
              2007  |  -.9427837   .6146651    -1.53   0.133    -2.187108    .3015408
              2009  |  -1.457214   .5028026    -2.90   0.006    -2.475085    -.439343
              2011  |  -1.389573   .3525476    -3.94   0.000    -2.103269   -.6758779
              2012  |  -1.859701   .4071798    -4.57   0.000    -2.683994   -1.035409
              2013  |  -2.249271   .5008872    -4.49   0.000    -3.263264   -1.235278
              2014  |  -.8677292   .3300452    -2.63   0.012    -1.535871   -.1995875
              2017  |  -1.505063   .6324451    -2.38   0.022    -2.785381   -.2247448
              2018  |  -1.746554   .3133483    -5.57   0.000    -2.380895   -1.112214
              2019  |  -1.773022   .2730021    -6.49   0.000    -2.325686   -1.220358
              2020  |  -1.885743   .2846976    -6.62   0.000    -2.462083   -1.309403
                    |
              _cons |   2.562147   .5063167     5.06   0.000     1.537162    3.587131
-------------------------------------------------------------------------------------

. eststo m3

. 
. reg sdPVP sdcorr_part_spirit2   sdreligfrac4    sdlndm     sdover65  sdherfrel00          sdmean_bel   easteur latinam neoeurope africa  i.yea
> r , cluster(country) 

Linear regression                               Number of obs     =         98
                                                F(27, 38)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.6610
                                                Root MSE          =     .71208

                                      (Std. Err. adjusted for 39 clusters in country)
-------------------------------------------------------------------------------------
                    |               Robust
              sdPVP |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
sdcorr_part_spirit2 |     .32371   .1395178     2.32   0.026     .0412709    .6061491
       sdreligfrac4 |    1.07652   .1836483     5.86   0.000     .7047433    1.448297
             sdlndm |   .2485793   .0707242     3.51   0.001     .1054058    .3917529
           sdover65 |   .6530098   .2235658     2.92   0.006     .2004246    1.105595
        sdherfrel00 |   .2314693   .1013192     2.28   0.028     .0263594    .4365793
         sdmean_bel |  -.4437991   .2451493    -1.81   0.078     -.940078    .0524798
         easteurope |  -1.372799   .5202065    -2.64   0.012    -2.425902    -.319696
            latinam |  -1.122967   .4232295    -2.65   0.012    -1.979751   -.2661837
          neoeurope |  -1.224731   .4873807    -2.51   0.016    -2.211382   -.2380805
             africa |  -1.457121   .6282404    -2.32   0.026    -2.728927   -.1853148
                    |
               year |
              1991  |  -.4031117   .3667952    -1.10   0.279     -1.14565    .3394264
              1995  |  -.6586823    .651421    -1.01   0.318    -1.977415    .6600507
              1996  |  -1.074995   .3671876    -2.93   0.006    -1.818328   -.3316627
              1997  |  -.8542386   .3589958    -2.38   0.022    -1.580988   -.1274895
              1998  |  -1.346017   .4370013    -3.08   0.004     -2.23068   -.4613545
              1999  |  -.9125767   .7847888    -1.16   0.252    -2.501299    .6761451
              2000  |  -1.142302   .4203183    -2.72   0.010    -1.993192   -.2914122
              2001  |  -.6822121   .7645038    -0.89   0.378    -2.229869    .8654451
              2002  |  -.9005278   .4045037    -2.23   0.032    -1.719403   -.0816528
              2004  |  -.1721466   .4330541    -0.40   0.693    -1.048819    .7045256
              2005  |  -1.220579   .2840596    -4.30   0.000    -1.795628   -.6455309
              2006  |  -1.174665   .3605226    -3.26   0.002    -1.904504   -.4448246
              2007  |  -.7229468   .6292157    -1.15   0.258    -1.996727    .5508338
              2009  |  -.9807781   .7010423    -1.40   0.170    -2.399964    .4384079
              2011  |  -1.165494    .367919    -3.17   0.003    -1.910307   -.4206811
              2012  |  -1.603669    .413946    -3.87   0.000    -2.441659    -.765679
              2013  |  -2.054867   .4889978    -4.20   0.000    -3.044792   -1.064943
              2014  |   -.316805   .4879676    -0.65   0.520    -1.304644    .6710338
              2017  |  -1.189318     .66219    -1.80   0.080    -2.529851    .1512159
              2018  |  -1.485703   .3806307    -3.90   0.000     -2.25625   -.7151567
              2019  |  -1.605067   .3026152    -5.30   0.000     -2.21768   -.9924549
              2020  |  -1.708904   .3183979    -5.37   0.000    -2.353467   -1.064342
                    |
              _cons |   2.373319   .4850749     4.89   0.000     1.391336    3.355301
-------------------------------------------------------------------------------------

. eststo m4

. 
. reg sdPVP sdcorr_part_spirit2   sdreligfrac4    sdlndm     sdover65  sdherfrel00          sdmean_attend  easteur latinam neoeurope africa  i.y
> ear , cluster(country)

Linear regression                               Number of obs     =         98
                                                F(27, 38)         =          .
                                                Prob > F          =          .
                                                R-squared         =     0.6571
                                                Root MSE          =     .71615

                                      (Std. Err. adjusted for 39 clusters in country)
-------------------------------------------------------------------------------------
                    |               Robust
              sdPVP |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
sdcorr_part_spirit2 |    .360947    .149748     2.41   0.021      .057798     .664096
       sdreligfrac4 |    .988943   .1658752     5.96   0.000     .6531462     1.32474
             sdlndm |   .2405988   .0703709     3.42   0.002     .0981403    .3830573
           sdover65 |   .6758198   .2131471     3.17   0.003     .2443262    1.107313
        sdherfrel00 |   .2765005   .1071141     2.58   0.014     .0596594    .4933416
      sdmean_attend |  -.3235084   .1591867    -2.03   0.049     -.645765   -.0012519
         easteurope |  -1.445088   .5393069    -2.68   0.011    -2.536858   -.3533186
            latinam |  -1.451017   .5066663    -2.86   0.007    -2.476709   -.4253242
          neoeurope |  -1.377977    .531643    -2.59   0.013    -2.454232    -.301722
             africa |  -1.405185   .6213907    -2.26   0.030    -2.663124   -.1472448
                    |
               year |
              1991  |  -.6227499   .3370799    -1.85   0.072    -1.305132    .0596327
              1995  |  -.7880971   .5885399    -1.34   0.189    -1.979534    .4033396
              1996  |  -1.223201   .3248944    -3.76   0.001    -1.880915   -.5654868
              1997  |  -.8722423   .3752593    -2.32   0.026    -1.631915   -.1125696
              1998  |  -1.425493   .4367968    -3.26   0.002    -2.309742   -.5412438
              1999  |  -1.015134   .6749302    -1.50   0.141    -2.381459     .351191
              2000  |  -1.287477   .3750056    -3.43   0.001    -2.046636   -.5283174
              2001  |  -.8098966    .769121    -1.05   0.299    -2.366901    .7471074
              2002  |  -.9363305   .4205025    -2.23   0.032    -1.787593   -.0850676
              2004  |  -.1865533    .353169    -0.53   0.600    -.9015065       .5284
              2005  |  -1.418689   .3088468    -4.59   0.000    -2.043917   -.7934615
              2006  |  -1.305955   .3300014    -3.96   0.000    -1.974008    -.637902
              2007  |  -.8919436   .5894008    -1.51   0.138    -2.085123    .3012359
              2009  |  -1.350175   .5796606    -2.33   0.025    -2.523637   -.1767138
              2011  |  -1.343486    .358478    -3.75   0.001    -2.069187   -.6177855
              2012  |  -1.726702   .4024248    -4.29   0.000    -2.541368   -.9120354
              2013  |  -2.071999   .5609254    -3.69   0.001    -3.207533   -.9364649
              2014  |  -.5616923   .3728435    -1.51   0.140    -1.316475    .1930899
              2017  |  -1.292858   .6661175    -1.94   0.060    -2.641342    .0556265
              2018  |  -1.533905   .3290324    -4.66   0.000    -2.199997    -.867814
              2019  |  -1.580863   .3090824    -5.11   0.000    -2.206568   -.9551584
              2020  |  -1.720171   .2836552    -6.06   0.000    -2.294401   -1.145941
                    |
              _cons |   2.668105   .4924666     5.42   0.000     1.671158    3.665051
-------------------------------------------------------------------------------------

. eststo m5

. 
. esttab m1 m2 m3 m4 m5, tex cells(b(star fmt(3)) p(par fmt(3)))  style(tex) star(+ 0.10 * 0.05 ** 0.01 *** 0.001)  ///
>                 keep(  sdcorr_part_spirit2 sdlndm sdlngdp_l5   sdgini_ml5   sdover65 sdstatefund_ch sdherfrel00 catholic orthodox sdreligfrac4
>   easteurope latinam africa neoeurope sdmean_bel sdmean_attend) ///
>                 stats(r2 N, fmt(%9.3f %9.0g) labels("R$^2$" Obs)) ///
>                 varlabels( sdcorr_part_spirit2 "{\sc religious cohesion}" sdlndm "{\sc dm}" sdlngdp_l5 "{\sc ln(gdp)}" sdgini_ml5 "\sc{gini}" 
> ///
>             sdover65 "{\sc over 65}" sdstatefund_ch "{\sc state funding}" sdherfrel00 "{\sc frac. religions sects}" sdreligfrac4 "{\sc frac. r
> eligious groups}" catholic "{\sc catholic}" orthodox "{\sc orthodox}"  ///
>                 easteurope "{\sc east/central europe}" latinam "{\sc latin america}" africa "{\sc africa}" neoeurope "{\sc neo-europe}" sdmean
> _bel "{\sc mean belief}" sdmean_attend "{\sc mean attendance}")

{
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\begin{tabular}{l*{5}{c}}
\hline\hline
            &\multicolumn{1}{c}{(1)}&\multicolumn{1}{c}{(2)}&\multicolumn{1}{c}{(3)}&\multicolumn{1}{c}{(4)}&\multicolumn{1}{c}{(5)}\\
            &\multicolumn{1}{c}{sdPVP}&\multicolumn{1}{c}{sdPVP}&\multicolumn{1}{c}{sdPVP}&\multicolumn{1}{c}{sdPVP}&\multicolumn{1}{c}{sdPVP}\\
            &         b/p         &         b/p         &         b/p         &         b/p         &         b/p         \\
\hline
{\sc religious cohesion}&       0.268\sym{**} &       0.264\sym{*}  &       0.380\sym{*}  &       0.324\sym{*}  &       0.361\sym{*}  \\
            &     (0.006)         &     (0.043)         &     (0.013)         &     (0.026)         &     (0.021)         \\
{\sc frac. religious groups}&       0.576\sym{***}&       0.912\sym{***}&       0.818\sym{***}&       1.077\sym{***}&       0.989\sym{***}\\
            &     (0.000)         &     (0.000)         &     (0.000)         &     (0.000)         &     (0.000)         \\
{\sc east/central europe}&       0.913\sym{**} &      -0.658         &      -1.329\sym{*}  &      -1.373\sym{*}  &      -1.445\sym{*}  \\
            &     (0.003)         &     (0.312)         &     (0.024)         &     (0.012)         &     (0.011)         \\
{\sc latin america}&       0.189         &      -1.236\sym{**} &      -1.052\sym{*}  &      -1.123\sym{*}  &      -1.451\sym{**} \\
            &     (0.517)         &     (0.004)         &     (0.021)         &     (0.012)         &     (0.007)         \\
{\sc neo-europe}&       1.084\sym{**} &      -0.985         &      -1.175\sym{*}  &      -1.225\sym{*}  &      -1.378\sym{*}  \\
            &     (0.009)         &     (0.126)         &     (0.033)         &     (0.016)         &     (0.013)         \\
{\sc africa}&      -0.224         &      -1.784\sym{*}  &      -1.244\sym{*}  &      -1.457\sym{*}  &      -1.405\sym{*}  \\
            &     (0.405)         &     (0.018)         &     (0.034)         &     (0.026)         &     (0.030)         \\
{\sc dm}    &                     &       0.264\sym{**} &       0.209\sym{**} &       0.249\sym{**} &       0.241\sym{**} \\
            &                     &     (0.008)         &     (0.002)         &     (0.001)         &     (0.002)         \\
{\sc ln(gdp)}&                     &       0.066         &                     &                     &                     \\
            &                     &     (0.736)         &                     &                     &                     \\
\sc{gini}   &                     &       0.144         &                     &                     &                     \\
            &                     &     (0.200)         &                     &                     &                     \\
{\sc over 65}&                     &       0.949\sym{***}&       0.812\sym{***}&       0.653\sym{**} &       0.676\sym{**} \\
            &                     &     (0.000)         &     (0.000)         &     (0.006)         &     (0.003)         \\
{\sc state funding}&                     &      -0.184         &                     &                     &                     \\
            &                     &     (0.142)         &                     &                     &                     \\
{\sc frac. religions sects}&                     &       0.292\sym{*}  &       0.199\sym{+}  &       0.231\sym{*}  &       0.277\sym{*}  \\
            &                     &     (0.020)         &     (0.065)         &     (0.028)         &     (0.014)         \\
{\sc catholic}&                     &       0.031         &                     &                     &                     \\
            &                     &     (0.928)         &                     &                     &                     \\
{\sc orthodox}&                     &      -0.716\sym{+}  &                     &                     &                     \\
            &                     &     (0.079)         &                     &                     &                     \\
{\sc mean belief}&                     &                     &                     &      -0.444\sym{+}  &                     \\
            &                     &                     &                     &     (0.078)         &                     \\
{\sc mean attendance}&                     &                     &                     &                     &      -0.324\sym{*}  \\
            &                     &                     &                     &                     &     (0.049)         \\
\hline
R$^2$       &       0.369         &       0.706         &       0.642         &       0.661         &       0.657         \\
Obs         &          98         &          96         &          98         &          98         &          98         \\
\hline\hline
\end{tabular}
}

. 
. 
. ************* Table (2)
. //Import the data
. use "wvs_relig.dta", clear

. 
. //GDP Models
. xtmixed   sdattendance c.sdbelief##c.sdlngdp_l5     sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i catholic_
> i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year [w=S017]  || ctry_survey_r:, vce(cluster ctry_survey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -97974.803  
Iteration 1:   log pseudolikelihood = -97974.803  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     85,450
Group variable: ctry_survey_~n                  Number of groups  =        893

                                                Obs per group:
                                                              min =          1
                                                              avg =       95.7
                                                              max =        968

                                                Wald chi2(35)     =   18157.32
Log pseudolikelihood = -97974.803               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 893 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |   .3906858   .0078701    49.64   0.000     .3752606     .406111
             sdlngdp_l5 |  -.0543742   .0160842    -3.38   0.001    -.0858987   -.0228497
                        |
c.sdbelief#c.sdlngdp_l5 |   .0584656   .0074246     7.87   0.000     .0439136    .0730175
                        |
           sdincome_imp |   .0154995   .0041365     3.75   0.000     .0073922    .0236069
                  sdage |   .1045785    .022384     4.67   0.000     .0607067    .1484504
                 sdage2 |  -.0609885   .0226729    -2.69   0.007    -.1054266   -.0165504
             notlooking |    .066922   .0122991     5.44   0.000     .0428163    .0910278
               employed |   .0220399   .0116627     1.89   0.059    -.0008187    .0448984
                 female |   .1253637    .007975    15.72   0.000      .109733    .1409945
            sdeducation |   .0216273   .0042487     5.09   0.000        .0133    .0299546
             orthodox_i |   .3915418   .0328152    11.93   0.000     .3272252    .4558583
           protestant_i |     .44948   .0289164    15.54   0.000     .3928049    .5061551
             catholic_i |   .3948909   .0207236    19.06   0.000     .3542734    .4355085
         sdstatefund_ch |     .02321   .0114482     2.03   0.043      .000772     .045648
              typecity1 |   .0301059   .0142577     2.11   0.035     .0021614    .0580504
              typecity2 |  -.0039725   .0114653    -0.35   0.729     -.026444     .018499
             sdorthodox |  -.0620829    .014323    -4.33   0.000    -.0901554   -.0340103
             sdcatholic |  -.0160479   .0145548    -1.10   0.270    -.0445749     .012479
                        |
                   year |
                  1995  |    .090932    .051427     1.77   0.077    -.0098631    .1917271
                  1996  |  -.0425046   .0428349    -0.99   0.321    -.1264594    .0414503
                  1997  |   .0652869   .0504299     1.29   0.195    -.0335539    .1641277
                  1998  |   .1646377   .0510945     3.22   0.001     .0644944     .264781
                  1999  |     .42113   .0552987     7.62   0.000     .3127465    .5295136
                  2000  |   .1242196   .0410134     3.03   0.002     .0438347    .2046045
                  2001  |   .5048497   .0531506     9.50   0.000     .4006764    .6090229
                  2002  |   .1656824   .0460039     3.60   0.000     .0755164    .2558484
                  2004  |   .5850497   .0321706    18.19   0.000     .5219966    .6481029
                  2005  |   .1834778   .0392584     4.67   0.000     .1065328    .2604228
                  2006  |   .0368086   .0435333     0.85   0.398    -.0485151    .1221323
                  2007  |  -.0768256   .0607832    -1.26   0.206    -.1959585    .0423073
                  2009  |  -.1444435   .0486551    -2.97   0.003    -.2398058   -.0490812
                  2011  |    .003187   .0497624     0.06   0.949    -.0943455    .1007194
                  2012  |   .2135547   .0351492     6.08   0.000     .1446634    .2824459
                  2013  |   .2852153   .0774752     3.68   0.000     .1333667     .437064
                  2014  |   .2438464   .0553797     4.40   0.000     .1353042    .3523885
                        |
                  _cons |  -.4796136   .0361135   -13.28   0.000    -.5503947   -.4088325
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .2435299   .0080133      .2283199    .2597532
-----------------------------+------------------------------------------------
                sd(Residual) |   .7544849   .0061055      .7426127    .7665469
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa1

. 
. xtmixed   sdattendance c.sdbelief##c.sdlngdp_l5     sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i catholic_
> i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year if income_imp<=4  [w=S017] || ctry_survey_r:, vce(cluster ctry_survey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -48576.947  
Iteration 1:   log pseudolikelihood = -48576.947  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     41,439
Group variable: ctry_survey_~n                  Number of groups  =        888

                                                Obs per group:
                                                              min =          1
                                                              avg =       46.7
                                                              max =        620

                                                Wald chi2(35)     =   12291.52
Log pseudolikelihood = -48576.947               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 888 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |    .388831   .0097326    39.95   0.000     .3697555    .4079066
             sdlngdp_l5 |  -.0638847    .018244    -3.50   0.000    -.0996423    -.028127
                        |
c.sdbelief#c.sdlngdp_l5 |   .0648046   .0085949     7.54   0.000      .047959    .0816503
                        |
           sdincome_imp |   .0304567   .0119836     2.54   0.011     .0069694    .0539441
                  sdage |   .1293803   .0278216     4.65   0.000      .074851    .1839096
                 sdage2 |  -.0866898   .0284945    -3.04   0.002    -.1425381   -.0308415
             notlooking |   .0701239   .0147918     4.74   0.000     .0411326    .0991153
               employed |   .0204524   .0146465     1.40   0.163    -.0082541     .049159
                 female |   .1480835   .0096784    15.30   0.000     .1291141    .1670529
            sdeducation |   .0172528   .0059466     2.90   0.004     .0055976     .028908
             orthodox_i |   .3816687   .0417525     9.14   0.000     .2998353    .4635021
           protestant_i |   .4955546   .0380315    13.03   0.000     .4210142     .570095
             catholic_i |   .3817773   .0242893    15.72   0.000     .3341712    .4293835
         sdstatefund_ch |   .0263667    .013266     1.99   0.047     .0003658    .0523677
              typecity1 |   .0571268   .0177697     3.21   0.001     .0222988    .0919548
              typecity2 |   .0050233   .0145826     0.34   0.730    -.0235581    .0336047
             sdorthodox |   -.056657   .0174592    -3.25   0.001    -.0908765   -.0224375
             sdcatholic |   .0045589   .0169852     0.27   0.788    -.0287315    .0378493
                        |
                   year |
                  1995  |   .0222787   .0597199     0.37   0.709      -.09477    .1393275
                  1996  |  -.0506081   .0534256    -0.95   0.344    -.1553204    .0541042
                  1997  |   .0507519   .0611532     0.83   0.407    -.0691061    .1706099
                  1998  |   .1351735   .0586716     2.30   0.021     .0201793    .2501677
                  1999  |   .3141616   .0921925     3.41   0.001     .1334677    .4948555
                  2000  |   .1510735   .0586421     2.58   0.010     .0361372    .2660099
                  2001  |   .4531378   .0860462     5.27   0.000     .2844904    .6217851
                  2002  |   .1699632   .0633639     2.68   0.007     .0457722    .2941542
                  2004  |   .5331653   .0410664    12.98   0.000     .4526765     .613654
                  2005  |   .1598358   .0493172     3.24   0.001     .0631759    .2564957
                  2006  |   .0052554   .0498505     0.11   0.916    -.0924498    .1029605
                  2007  |  -.1268464    .101063    -1.26   0.209    -.3249262    .0712333
                  2009  |  -.2079471   .0607119    -3.43   0.001    -.3269402    -.088954
                  2011  |   .0218225   .0594569     0.37   0.714    -.0947108    .1383558
                  2012  |   .2001011   .0437383     4.57   0.000     .1143756    .2858265
                  2013  |   .3010173   .0855245     3.52   0.000     .1333925    .4686422
                  2014  |   .1750597    .067368     2.60   0.009     .0430208    .3070986
                        |
                  _cons |  -.4698327   .0508579    -9.24   0.000    -.5695124    -.370153
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .2501164   .0096804      .2318449    .2698278
-----------------------------+------------------------------------------------
                sd(Residual) |   .7685621   .0069676      .7550265    .7823404
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa2

. 
. xtmixed   sdattendance c.sdbelief##c.sdlngdp_l5     sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i catholic_
> i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year if income_imp>=7 [w=S017] || ctry_survey_r:, vce(cluster ctry_survey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood =  -20213.64  
Iteration 1:   log pseudolikelihood =  -20213.64  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     18,036
Group variable: ctry_survey_~n                  Number of groups  =        838

                                                Obs per group:
                                                              min =          1
                                                              avg =       21.5
                                                              max =        316

                                                Wald chi2(35)     =   10882.95
Log pseudolikelihood =  -20213.64               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 838 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |   .4136535   .0111018    37.26   0.000     .3918945    .4354126
             sdlngdp_l5 |  -.0957714   .0199125    -4.81   0.000    -.1347993   -.0567435
                        |
c.sdbelief#c.sdlngdp_l5 |   .0383154   .0104448     3.67   0.000      .017844    .0587868
                        |
           sdincome_imp |   -.006336   .0153255    -0.41   0.679    -.0363735    .0237015
                  sdage |   .0692093   .0399769     1.73   0.083     -.009144    .1475625
                 sdage2 |  -.0247307   .0422211    -0.59   0.558    -.1074825    .0580211
             notlooking |   .0649136   .0288708     2.25   0.025     .0083278    .1214993
               employed |   .0186178   .0243853     0.76   0.445    -.0291765     .066412
                 female |   .0818906   .0133916     6.12   0.000     .0556436    .1081375
            sdeducation |   .0361399   .0079282     4.56   0.000     .0206008     .051679
             orthodox_i |   .3360628   .0410581     8.19   0.000     .2555903    .4165353
           protestant_i |   .3817183   .0306863    12.44   0.000     .3215743    .4418622
             catholic_i |   .4396133   .0256501    17.14   0.000       .38934    .4898867
         sdstatefund_ch |   .0295346   .0133378     2.21   0.027      .003393    .0556761
              typecity1 |   .0172196   .0251956     0.68   0.494    -.0321629    .0666021
              typecity2 |  -.0061307   .0182405    -0.34   0.737    -.0418815    .0296201
             sdorthodox |  -.0550429   .0155999    -3.53   0.000     -.085618   -.0244677
             sdcatholic |  -.0522377   .0159313    -3.28   0.001    -.0834625    -.021013
                        |
                   year |
                  1995  |    .358983   .1053687     3.41   0.001     .1524641    .5655019
                  1996  |   .1401105   .0912733     1.54   0.125    -.0387818    .3190028
                  1997  |   .2622991   .0943589     2.78   0.005      .077359    .4472392
                  1998  |   .3492302     .09048     3.86   0.000     .1718926    .5265678
                  1999  |   .7236312   .1063996     6.80   0.000     .5150919    .9321705
                  2000  |   .3465977   .0952625     3.64   0.000     .1598867    .5333087
                  2001  |   .5875426   .1003478     5.86   0.000     .3908646    .7842207
                  2002  |   .1712575   .1067073     1.60   0.109    -.0378849    .3803999
                  2004  |   .6851268   .0918722     7.46   0.000     .5050606     .865193
                  2005  |    .331954   .0898845     3.69   0.000     .1557835    .5081244
                  2006  |   .2918987   .0930032     3.14   0.002     .1096158    .4741817
                  2007  |   .2053073   .0992258     2.07   0.039     .0108283    .3997864
                  2009  |   .2398424   .1131975     2.12   0.034     .0179794    .4617053
                  2011  |   .2160614   .0953709     2.27   0.023      .029138    .4029849
                  2012  |   .3608627   .0894983     4.03   0.000     .1854492    .5362762
                  2013  |   .4880907   .1150327     4.24   0.000     .2626307    .7135506
                  2014  |   .4872796    .103614     4.70   0.000     .2841998    .6903594
                        |
                  _cons |  -.6361305   .0932254    -6.82   0.000    -.8188488   -.4534121
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .2110968   .0117577      .1892654    .2354465
-----------------------------+------------------------------------------------
                sd(Residual) |     .72949   .0079427      .7140875    .7452246
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa3

. 
. // Gini Models
. xtmixed   sdattendance c.sdbelief##c.sdgini_nl5 sdlngdp_l5   sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i 
> catholic_i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year [w=S017]  || ctry_survey_r:, vce(cluster ctry_survey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -98054.757  
Iteration 1:   log pseudolikelihood = -98054.757  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     85,450
Group variable: ctry_survey_~n                  Number of groups  =        893

                                                Obs per group:
                                                              min =          1
                                                              avg =       95.7
                                                              max =        968

                                                Wald chi2(36)     =   19516.82
Log pseudolikelihood = -98054.757               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 893 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |   .3899431   .0098405    39.63   0.000      .370656    .4092301
             sdgini_nl5 |   .1613518   .0241048     6.69   0.000     .1141074    .2085963
                        |
c.sdbelief#c.sdgini_nl5 |  -.0259122   .0100164    -2.59   0.010    -.0455439   -.0062804
                        |
             sdlngdp_l5 |   .0214988   .0213151     1.01   0.313     -.020278    .0632755
           sdincome_imp |    .015166   .0041581     3.65   0.000     .0070162    .0233158
                  sdage |   .1030382   .0223744     4.61   0.000     .0591851    .1468913
                 sdage2 |  -.0567257   .0226791    -2.50   0.012    -.1011759   -.0122755
             notlooking |   .0655843    .012261     5.35   0.000     .0415532    .0896154
               employed |   .0221185   .0116629     1.90   0.058    -.0007405    .0449774
                 female |   .1249345   .0080062    15.60   0.000     .1092427    .1406263
            sdeducation |   .0228968   .0042498     5.39   0.000     .0145674    .0312263
             orthodox_i |    .368058   .0326177    11.28   0.000     .3041285    .4319875
           protestant_i |   .4519629   .0288871    15.65   0.000     .3953453    .5085806
             catholic_i |   .3969419   .0205193    19.34   0.000     .3567248     .437159
         sdstatefund_ch |   .0822954   .0137408     5.99   0.000     .0553638    .1092269
              typecity1 |   .0298361   .0143441     2.08   0.038     .0017222      .05795
              typecity2 |  -.0030392   .0115023    -0.26   0.792    -.0255833    .0195049
             sdorthodox |  -.0267851   .0144028    -1.86   0.063    -.0550141    .0014438
             sdcatholic |  -.0171237    .012942    -1.32   0.186    -.0424896    .0082422
                        |
                   year |
                  1995  |   .2486472   .0519599     4.79   0.000     .1468077    .3504868
                  1996  |   .1419917   .0443138     3.20   0.001     .0551382    .2288451
                  1997  |   .2080101   .0507728     4.10   0.000     .1084971     .307523
                  1998  |   .3192768   .0582786     5.48   0.000     .2050529    .4335007
                  1999  |   .5456064   .0557651     9.78   0.000     .4363088    .6549041
                  2000  |   .2404623   .0453683     5.30   0.000      .151542    .3293826
                  2001  |   .6383561    .065379     9.76   0.000     .5102156    .7664965
                  2002  |   .3284284    .048765     6.73   0.000     .2328509     .424006
                  2004  |   .6005575   .0337855    17.78   0.000     .5343391    .6667759
                  2005  |   .2555581   .0380863     6.71   0.000     .1809103    .3302058
                  2006  |   .1271204   .0408957     3.11   0.002     .0469664    .2072744
                  2007  |  -.0289882   .0580392    -0.50   0.617     -.142743    .0847665
                  2009  |  -.0424032   .0458889    -0.92   0.355    -.1323438    .0475374
                  2011  |   .1340536   .0504939     2.65   0.008     .0350873    .2330198
                  2012  |   .2542934   .0359824     7.07   0.000     .1837691    .3248176
                  2013  |   .2548114    .068204     3.74   0.000     .1211341    .3884888
                  2014  |   .2901912   .0601084     4.83   0.000     .1723809    .4080015
                        |
                  _cons |  -.5637555   .0366696   -15.37   0.000    -.6356266   -.4918844
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .2341011   .0075977      .2196736    .2494761
-----------------------------+------------------------------------------------
                sd(Residual) |   .7554492   .0060971      .7435931    .7674944
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa4

. 
. xtmixed   sdattendance c.sdbelief##c.sdgini_nl5 sdlngdp_l5   sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i 
> catholic_i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year if income_imp<=4 [w=S017]  || ctry_survey_r:, vce(cluster ctry_sur
> vey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -48610.688  
Iteration 1:   log pseudolikelihood = -48610.688  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     41,439
Group variable: ctry_survey_~n                  Number of groups  =        888

                                                Obs per group:
                                                              min =          1
                                                              avg =       46.7
                                                              max =        620

                                                Wald chi2(36)     =   12765.80
Log pseudolikelihood = -48610.688               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 888 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |   .3825489   .0126418    30.26   0.000     .3577715    .4073264
             sdgini_nl5 |   .1892856   .0254219     7.45   0.000     .1394595    .2391117
                        |
c.sdbelief#c.sdgini_nl5 |  -.0185395   .0131303    -1.41   0.158    -.0442744    .0071955
                        |
             sdlngdp_l5 |   .0354981   .0236362     1.50   0.133     -.010828    .0818243
           sdincome_imp |   .0319544   .0120492     2.65   0.008     .0083383    .0555705
                  sdage |   .1300103   .0277724     4.68   0.000     .0755773    .1844432
                 sdage2 |  -.0823507   .0285153    -2.89   0.004    -.1382398   -.0264617
             notlooking |   .0678265   .0147831     4.59   0.000     .0388522    .0968007
               employed |   .0190334   .0146781     1.30   0.195    -.0097351     .047802
                 female |   .1479171   .0097128    15.23   0.000     .1288804    .1669538
            sdeducation |   .0197387   .0059328     3.33   0.001     .0081106    .0313668
             orthodox_i |   .3615023   .0416175     8.69   0.000     .2799335    .4430712
           protestant_i |   .4960784   .0379521    13.07   0.000     .4216935    .5704632
             catholic_i |   .3862164   .0240265    16.07   0.000     .3391253    .4333075
         sdstatefund_ch |   .0927151   .0153875     6.03   0.000     .0625562    .1228739
              typecity1 |   .0593438   .0177865     3.34   0.001     .0244828    .0942047
              typecity2 |   .0068129   .0145332     0.47   0.639    -.0216716    .0352973
             sdorthodox |  -.0070778   .0171407    -0.41   0.680     -.040673    .0265173
             sdcatholic |   .0101493   .0146672     0.69   0.489    -.0185978    .0388964
                        |
                   year |
                  1995  |   .2061611    .060156     3.43   0.001     .0882575    .3240648
                  1996  |   .1636066   .0542243     3.02   0.003     .0573289    .2698843
                  1997  |   .2019952   .0599414     3.37   0.001     .0845122    .3194783
                  1998  |   .3114666   .0639027     4.87   0.000     .1862196    .4367136
                  1999  |   .4647075   .0932977     4.98   0.000     .2818473    .6475676
                  2000  |   .2817065   .0612216     4.60   0.000     .1617144    .4016986
                  2001  |   .6378456    .095539     6.68   0.000     .4505926    .8250986
                  2002  |   .3641724   .0656643     5.55   0.000     .2354727     .492872
                  2004  |   .5679775   .0429923    13.21   0.000     .4837142    .6522408
                  2005  |   .2419901   .0479974     5.04   0.000     .1479169    .3360632
                  2006  |   .1051144   .0477886     2.20   0.028     .0114506    .1987783
                  2007  |  -.0773712   .0975384    -0.79   0.428     -.268543    .1138007
                  2009  |  -.0964328   .0572078    -1.69   0.092    -.2085581    .0156924
                  2011  |   .1693851   .0596687     2.84   0.005     .0524367    .2863336
                  2012  |   .2500568   .0448423     5.58   0.000     .1621675    .3379461
                  2013  |   .2571971   .0750562     3.43   0.001     .1100897    .4043045
                  2014  |   .2205765   .0730642     3.02   0.003     .0773733    .3637798
                        |
                  _cons |  -.5686445   .0512877   -11.09   0.000    -.6691666   -.4681224
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .2348951    .009315      .2173296    .2538804
-----------------------------+------------------------------------------------
                sd(Residual) |   .7698889   .0069351      .7564157    .7836021
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa5

. 
. 
. xtmixed   sdattendance c.sdbelief##c.sdgini_nl5 sdlngdp_l5   sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i 
> catholic_i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year if income_imp>=7 [w=S017]  || ctry_survey_r:, vce(cluster ctry_sur
> vey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -20212.744  
Iteration 1:   log pseudolikelihood = -20212.743  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     18,036
Group variable: ctry_survey_~n                  Number of groups  =        838

                                                Obs per group:
                                                              min =          1
                                                              avg =       21.5
                                                              max =        316

                                                Wald chi2(36)     =   11356.09
Log pseudolikelihood = -20212.743               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 838 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |    .420086   .0139852    30.04   0.000     .3926755    .4474964
             sdgini_nl5 |    .122107   .0278327     4.39   0.000     .0675559    .1766582
                        |
c.sdbelief#c.sdgini_nl5 |  -.0051067   .0134312    -0.38   0.704    -.0314314     .021218
                        |
             sdlngdp_l5 |  -.0402414   .0251571    -1.60   0.110    -.0895484    .0090655
           sdincome_imp |  -.0078023   .0153808    -0.51   0.612    -.0379481    .0223435
                  sdage |   .0654414    .040191     1.63   0.103    -.0133315    .1442144
                 sdage2 |  -.0183428   .0424711    -0.43   0.666    -.1015846    .0648989
             notlooking |    .061107    .028824     2.12   0.034     .0046129    .1176011
               employed |   .0185007   .0243507     0.76   0.447    -.0292258    .0662272
                 female |   .0840418   .0134561     6.25   0.000     .0576685    .1104152
            sdeducation |   .0367008   .0079145     4.64   0.000     .0211886     .052213
             orthodox_i |   .3208581   .0407863     7.87   0.000     .2409184    .4007978
           protestant_i |   .3791842   .0307885    12.32   0.000     .3188398    .4395286
             catholic_i |   .4401237   .0255189    17.25   0.000     .3901075    .4901398
         sdstatefund_ch |   .0781381   .0151212     5.17   0.000     .0485011     .107775
              typecity1 |   .0191684   .0252135     0.76   0.447    -.0302492    .0685859
              typecity2 |  -.0031284   .0183575    -0.17   0.865    -.0391085    .0328516
             sdorthodox |  -.0279894   .0161226    -1.74   0.083    -.0595892    .0036104
             sdcatholic |  -.0552149    .014648    -3.77   0.000    -.0839245   -.0265053
                        |
                   year |
                  1995  |   .4947611   .1041546     4.75   0.000     .2906218    .6989004
                  1996  |    .270173   .0907464     2.98   0.003     .0923133    .4480326
                  1997  |   .3766271   .0953119     3.95   0.000     .1898192    .5634349
                  1998  |   .4705894    .106785     4.41   0.000     .2612947     .679884
                  1999  |   .8220792   .1056626     7.78   0.000     .6149842    1.029174
                  2000  |   .4435011   .0978913     4.53   0.000     .2516377    .6353645
                  2001  |   .6895306   .1059931     6.51   0.000     .4817878    .8972733
                  2002  |   .2897521   .1077416     2.69   0.007     .0785824    .5009218
                  2004  |   .6873569   .0911884     7.54   0.000     .5086309    .8660829
                  2005  |   .3920382   .0891486     4.40   0.000     .2173101    .5667663
                  2006  |   .3543201   .0919731     3.85   0.000     .1740561     .534584
                  2007  |   .2389873   .0992024     2.41   0.016     .0445542    .4334204
                  2009  |   .3062305   .1092448     2.80   0.005     .0921146    .5203464
                  2011  |   .3168521   .0956842     3.31   0.001     .1293144    .5043898
                  2012  |   .3940627   .0894004     4.41   0.000     .2188413    .5692842
                  2013  |   .4596238   .1075549     4.27   0.000     .2488201    .6704274
                  2014  |   .5257993   .1042578     5.04   0.000     .3214579    .7301408
                        |
                  _cons |  -.7035442    .092882    -7.57   0.000    -.8855896   -.5214987
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .2027711   .0110836      .1821709    .2257009
-----------------------------+------------------------------------------------
                sd(Residual) |   .7300997   .0079338      .7147141    .7458165
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa6

. 
. // Redistribution Models
. xtmixed   sdattendance c.sdbelief##c.sdredis_l5 sdlngdp_l5   sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i 
> catholic_i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year [w=S017]  || ctry_survey_r:, vce(cluster ctry_survey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -98032.882  
Iteration 1:   log pseudolikelihood = -98032.882  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     85,450
Group variable: ctry_survey_~n                  Number of groups  =        893

                                                Obs per group:
                                                              min =          1
                                                              avg =       95.7
                                                              max =        968

                                                Wald chi2(36)     =   18465.19
Log pseudolikelihood = -98032.882               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 893 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |    .390322   .0083323    46.84   0.000      .373991     .406653
             sdredis_l5 |  -.0913921   .0179754    -5.08   0.000    -.1266232    -.056161
                        |
c.sdbelief#c.sdredis_l5 |   .0356805    .006058     5.89   0.000     .0238071    .0475538
                        |
             sdlngdp_l5 |  -.0203011   .0184941    -1.10   0.272     -.056549    .0159468
           sdincome_imp |   .0154017   .0041509     3.71   0.000     .0072661    .0235373
                  sdage |   .1034956   .0223541     4.63   0.000     .0596824    .1473088
                 sdage2 |  -.0585346   .0226458    -2.58   0.010    -.1029196   -.0141496
             notlooking |   .0668562   .0122918     5.44   0.000     .0427647    .0909478
               employed |   .0224211   .0116681     1.92   0.055    -.0004479    .0452902
                 female |    .125249   .0080064    15.64   0.000     .1095568    .1409413
            sdeducation |   .0222435   .0042412     5.24   0.000     .0139309    .0305561
             orthodox_i |   .3915431   .0330278    11.85   0.000     .3268099    .4562764
           protestant_i |   .4515858   .0288694    15.64   0.000     .3950029    .5081687
             catholic_i |    .395587   .0204875    19.31   0.000     .3554322    .4357417
         sdstatefund_ch |   .0666325   .0146983     4.53   0.000     .0378244    .0954407
              typecity1 |   .0300814   .0143232     2.10   0.036     .0020085    .0581543
              typecity2 |  -.0021911   .0114521    -0.19   0.848    -.0246368    .0202545
             sdorthodox |  -.0961581   .0156082    -6.16   0.000    -.1267497   -.0655665
             sdcatholic |  -.0424368   .0147686    -2.87   0.004    -.0713828   -.0134909
                        |
                   year |
                  1995  |   .0835096   .0508224     1.64   0.100    -.0161005    .1831198
                  1996  |  -.0911184    .042814    -2.13   0.033    -.1750322   -.0072045
                  1997  |   .0876648   .0527832     1.66   0.097    -.0157883     .191118
                  1998  |   .1842143   .0514263     3.58   0.000     .0834205     .285008
                  1999  |   .4063974   .0573392     7.09   0.000     .2940147    .5187801
                  2000  |   .1224049   .0423539     2.89   0.004     .0393928    .2054171
                  2001  |    .426367     .05419     7.87   0.000     .3201565    .5325775
                  2002  |   .3010851   .0470739     6.40   0.000     .2088221    .3933482
                  2004  |   .4965662   .0337847    14.70   0.000     .4303495    .5627829
                  2005  |   .1549726   .0408022     3.80   0.000     .0750018    .2349435
                  2006  |   .0398858   .0429874     0.93   0.353     -.044368    .1241396
                  2007  |  -.1600228   .0612842    -2.61   0.009    -.2801377    -.039908
                  2009  |  -.1076708   .0459411    -2.34   0.019    -.1977137    -.017628
                  2011  |  -.0045828   .0495939    -0.09   0.926    -.1017851    .0926196
                  2012  |   .1738576    .038331     4.54   0.000     .0987303    .2489849
                  2013  |   .1866944   .0843615     2.21   0.027     .0213488      .35204
                  2014  |    .252049   .0567844     4.44   0.000     .1407537    .3633443
                        |
                  _cons |  -.4577119   .0370274   -12.36   0.000    -.5302843   -.3851394
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |    .241837   .0079183      .2268049    .2578655
-----------------------------+------------------------------------------------
                sd(Residual) |   .7550473    .006112      .7431625    .7671222
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa7

. 
. xtmixed   sdattendance c.sdbelief##c.sdredis_l5 sdlngdp_l5   sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i 
> catholic_i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year if income_imp<=4 [w=S017]  || ctry_survey_r:, vce(cluster ctry_sur
> vey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -48598.905  
Iteration 1:   log pseudolikelihood = -48598.905  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     41,439
Group variable: ctry_survey_~n                  Number of groups  =        888

                                                Obs per group:
                                                              min =          1
                                                              avg =       46.7
                                                              max =        620

                                                Wald chi2(36)     =   12326.85
Log pseudolikelihood = -48598.905               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 888 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |   .3827581   .0100706    38.01   0.000     .3630201     .402496
             sdredis_l5 |  -.1061094   .0194719    -5.45   0.000    -.1442737   -.0679452
                        |
c.sdbelief#c.sdredis_l5 |   .0407998    .006565     6.21   0.000     .0279325     .053667
                        |
             sdlngdp_l5 |  -.0198612   .0206471    -0.96   0.336    -.0603287    .0206063
           sdincome_imp |   .0312696   .0120263     2.60   0.009     .0076984    .0548408
                  sdage |   .1287302   .0277184     4.64   0.000     .0744031    .1830574
                 sdage2 |  -.0840934   .0284086    -2.96   0.003    -.1397733   -.0284136
             notlooking |   .0696137   .0147612     4.72   0.000     .0406822    .0985452
               employed |   .0193928    .014666     1.32   0.186     -.009352    .0481375
                 female |   .1476957   .0097031    15.22   0.000     .1286779    .1667135
            sdeducation |   .0178698   .0059289     3.01   0.003     .0062495    .0294902
             orthodox_i |   .3867012   .0419786     9.21   0.000     .3044247    .4689777
           protestant_i |    .497454   .0379731    13.10   0.000     .4230282    .5718799
             catholic_i |    .383037   .0241022    15.89   0.000     .3357975    .4302764
         sdstatefund_ch |   .0747653   .0165797     4.51   0.000     .0422696    .1072609
              typecity1 |   .0578689   .0177962     3.25   0.001     .0229889    .0927489
              typecity2 |   .0078326    .014519     0.54   0.590    -.0206242    .0362893
             sdorthodox |  -.0957908   .0189612    -5.05   0.000    -.1329541   -.0586275
             sdcatholic |  -.0227768    .017027    -1.34   0.181    -.0561491    .0105955
                        |
                   year |
                  1995  |   .0099427   .0588202     0.17   0.866    -.1053427    .1252281
                  1996  |  -.1135309   .0534165    -2.13   0.034    -.2182253   -.0088365
                  1997  |   .0685666   .0620348     1.11   0.269    -.0530194    .1901527
                  1998  |   .1531357    .057442     2.67   0.008     .0405514    .2657199
                  1999  |   .2956643   .0938213     3.15   0.002      .111778    .4795506
                  2000  |   .1443703   .0582541     2.48   0.013     .0301945    .2585462
                  2001  |   .3741023   .0871152     4.29   0.000     .2033596     .544845
                  2002  |   .3327503   .0640299     5.20   0.000     .2072541    .4582465
                  2004  |   .4398963   .0426671    10.31   0.000     .3562702    .5235224
                  2005  |   .1242681   .0502052     2.48   0.013     .0258676    .2226685
                  2006  |   .0051703   .0494215     0.10   0.917    -.0916941    .1020346
                  2007  |  -.2253868   .1003837    -2.25   0.025    -.4221353   -.0286384
                  2009  |  -.1689113   .0583705    -2.89   0.004    -.2833154   -.0545072
                  2011  |   .0038482   .0597269     0.06   0.949    -.1132143    .1209108
                  2012  |   .1535365   .0460653     3.33   0.001     .0632502    .2438228
                  2013  |   .1938671   .0937862     2.07   0.039     .0100494    .3776847
                  2014  |   .1837975   .0686126     2.68   0.007     .0493193    .3182758
                        |
                  _cons |  -.4400953   .0513322    -8.57   0.000    -.5407045   -.3394861
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .2473467   .0095243      .2293664    .2667365
-----------------------------+------------------------------------------------
                sd(Residual) |   .7690994   .0069554      .7555872    .7828531
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa8

. 
. xtmixed   sdattendance c.sdbelief##c.sdredis_l5 sdlngdp_l5   sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i 
> catholic_i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year if income_imp>=7 [w=S017]  || ctry_survey_r:, vce(cluster ctry_sur
> vey_r)
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood =  -20223.66  
Iteration 1:   log pseudolikelihood =  -20223.66  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     18,036
Group variable: ctry_survey_~n                  Number of groups  =        838

                                                Obs per group:
                                                              min =          1
                                                              avg =       21.5
                                                              max =        316

                                                Wald chi2(36)     =   10832.91
Log pseudolikelihood =  -20223.66               Prob > chi2       =     0.0000

                              (Std. Err. adjusted for 838 clusters in ctry_survey_region)
-----------------------------------------------------------------------------------------
                        |               Robust
           sdattendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
------------------------+----------------------------------------------------------------
               sdbelief |   .4207584    .012501    33.66   0.000     .3962568      .44526
             sdredis_l5 |  -.0206028   .0217385    -0.95   0.343    -.0632095     .022004
                        |
c.sdbelief#c.sdredis_l5 |   .0160586   .0099961     1.61   0.108    -.0035334    .0356507
                        |
             sdlngdp_l5 |  -.0908558   .0222694    -4.08   0.000    -.1345031   -.0472085
           sdincome_imp |  -.0070168   .0153635    -0.46   0.648    -.0371287    .0230951
                  sdage |   .0678351   .0400569     1.69   0.090    -.0106751    .1463453
                 sdage2 |  -.0227198   .0423207    -0.54   0.591    -.1056668    .0602273
             notlooking |   .0659128   .0288534     2.28   0.022     .0093611    .1224645
               employed |   .0205522   .0243057     0.85   0.398     -.027086    .0681904
                 female |    .081586   .0133994     6.09   0.000     .0553236    .1078483
            sdeducation |   .0365183   .0079395     4.60   0.000     .0209572    .0520794
             orthodox_i |   .3285224    .040908     8.03   0.000     .2483441    .4087007
           protestant_i |   .3819889   .0308308    12.39   0.000     .3215617    .4424161
             catholic_i |   .4391129   .0255389    17.19   0.000     .3890576    .4891683
         sdstatefund_ch |   .0418361   .0173458     2.41   0.016     .0078389    .0758333
              typecity1 |   .0181571   .0253815     0.72   0.474    -.0315897    .0679038
              typecity2 |  -.0046583   .0184068    -0.25   0.800     -.040735    .0314183
             sdorthodox |  -.0606887   .0177899    -3.41   0.001    -.0955563   -.0258212
             sdcatholic |  -.0587165   .0165013    -3.56   0.000    -.0910584   -.0263746
                        |
                   year |
                  1995  |    .371427   .1052056     3.53   0.000     .1652279    .5776262
                  1996  |   .1415791   .0922568     1.53   0.125    -.0392409    .3223992
                  1997  |   .2838939   .0942776     3.01   0.003     .0991133    .4686746
                  1998  |    .364467   .0932821     3.91   0.000     .1816374    .5472966
                  1999  |   .7403933   .1067011     6.94   0.000      .531263    .9495236
                  2000  |   .3571381   .0951798     3.75   0.000     .1705892     .543687
                  2001  |   .5318333   .0981989     5.42   0.000      .339367    .7242997
                  2002  |    .204582   .1090699     1.88   0.061    -.0091911    .4183551
                  2004  |   .6362407   .0914105     6.96   0.000     .4570795     .815402
                  2005  |   .3298586   .0907374     3.64   0.000     .1520166    .5077007
                  2006  |    .298649   .0930506     3.21   0.001     .1162732    .4810248
                  2007  |   .1717401   .1013964     1.69   0.090    -.0269933    .3704734
                  2009  |   .2462731   .1107657     2.22   0.026     .0291762    .4633699
                  2011  |   .2186037   .0960104     2.28   0.023     .0304269    .4067805
                  2012  |   .3522257   .0906475     3.89   0.000     .1745599    .5298915
                  2013  |   .4716088   .1194702     3.95   0.000     .2374515    .7057662
                  2014  |   .4870812   .1038374     4.69   0.000     .2835637    .6905987
                        |
                  _cons |  -.6410636   .0927523    -6.91   0.000    -.8228548   -.4592725
-----------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .2113455   .0117419      .1895405    .2356589
-----------------------------+------------------------------------------------
                sd(Residual) |   .7298856    .007938      .7144921    .7456108
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. est sto pa9

. 
. estout    pa1 pa2 pa3 pa4 pa5 pa6 pa7 pa8 pa9, ///
> cells(b(star fmt(3)) se(par fmt(3) )) ///
> keep(sdbelief c.sdbelief#c.sdlngdp_l5 sdlngdp_l5 c.sdbelief#c.sdgini_nl5 sdredis_l5 c.sdbelief#c.sdredis_l5 sdgini_nl5 sdincome_imp sdeducatio
> n female) ///
> varlabels(  sdbelief "{\sc belief}" sdredis_l5 "{\sc redistribution}" c.sdbelief#c.sdlngdp_l5 "{\sc belief*(ln)gdp}"   sdgini_nl5 "{\sc gini}"
>  sdlngdp_l5 "{\sc (ln)gdp}" employed "{\sc employed}" female "{\sc female}"  sdincome_imp "{\sc ncome (std)" sdeducation "education (std)" not
> looking "Out Labor Force" sdage "Age(std)" sdage2 "Age-sq(std)" orthodox_i "Orthodox" protestant_i "Protestant" catholic_i "Catholic" sdbelief
>  "Belief(std)" sdattendance   "Attendance(std)" typecity1 "Rural/town" typecity2 "Small City" c.sdbelief#c.sdredis_l5 "{\sc belief*redistribut
> ion}" c.sdbelief#c.sdgini_nl5 "{\sc belief*gini(net)") ///
> style(tex) ///
> stats(N, fmt(0))

            &         pa1   &         pa2   &         pa3   &         pa4   &         pa5   &         pa6   &         pa7   &         pa8   &   
>       pa9   \\
            &        b/se   &        b/se   &        b/se   &        b/se   &        b/se   &        b/se   &        b/se   &        b/se   &   
>      b/se   \\
sdattendance&               &               &               &               &               &               &               &               &   
>             \\
{\sc belief}&       0.391***&       0.389***&       0.414***&       0.390***&       0.383***&       0.420***&       0.390***&       0.383***&   
>     0.421***\\
            &     (0.008)   &     (0.010)   &     (0.011)   &     (0.010)   &     (0.013)   &     (0.014)   &     (0.008)   &     (0.010)   &   
>   (0.013)   \\
{\sc (ln)gdp}&      -0.054***&      -0.064***&      -0.096***&       0.021   &       0.035   &      -0.040   &      -0.020   &      -0.020   &  
>     -0.091***\\
            &     (0.016)   &     (0.018)   &     (0.020)   &     (0.021)   &     (0.024)   &     (0.025)   &     (0.018)   &     (0.021)   &   
>   (0.022)   \\
{\sc belief*(ln)gdp}&       0.058***&       0.065***&       0.038***&               &               &               &               &           
>     &               \\
            &     (0.007)   &     (0.009)   &     (0.010)   &               &               &               &               &               &   
>             \\
{\sc ncome (std)&       0.015***&       0.030*  &      -0.006   &       0.015***&       0.032** &      -0.008   &       0.015***&       0.031** 
> &      -0.007   \\
            &     (0.004)   &     (0.012)   &     (0.015)   &     (0.004)   &     (0.012)   &     (0.015)   &     (0.004)   &     (0.012)   &   
>   (0.015)   \\
{\sc female}&       0.125***&       0.148***&       0.082***&       0.125***&       0.148***&       0.084***&       0.125***&       0.148***&   
>     0.082***\\
            &     (0.008)   &     (0.010)   &     (0.013)   &     (0.008)   &     (0.010)   &     (0.013)   &     (0.008)   &     (0.010)   &   
>   (0.013)   \\
education (std)&       0.022***&       0.017** &       0.036***&       0.023***&       0.020***&       0.037***&       0.022***&       0.018** &
>        0.037***\\
            &     (0.004)   &     (0.006)   &     (0.008)   &     (0.004)   &     (0.006)   &     (0.008)   &     (0.004)   &     (0.006)   &   
>   (0.008)   \\
{\sc gini}  &               &               &               &       0.161***&       0.189***&       0.122***&               &               &   
>             \\
            &               &               &               &     (0.024)   &     (0.025)   &     (0.028)   &               &               &   
>             \\
{\sc belief*gini(net)&               &               &               &      -0.026** &      -0.019   &      -0.005   &               &          
>      &               \\
            &               &               &               &     (0.010)   &     (0.013)   &     (0.013)   &               &               &   
>             \\
{\sc redistribution}&               &               &               &               &               &               &      -0.091***&      -0.10
> 6***&      -0.021   \\
            &               &               &               &               &               &               &     (0.018)   &     (0.019)   &   
>   (0.022)   \\
{\sc belief*redistribution}&               &               &               &               &               &               &       0.036***&    
>    0.041***&       0.016   \\
            &               &               &               &               &               &               &     (0.006)   &     (0.007)   &   
>   (0.010)   \\
N           &       85450   &       41439   &       18036   &       85450   &       41439   &       18036   &       85450   &       41439   &   
>     18036   \\

. 
. **************** Figure (6)
. xtmixed   attendance c.belief##c.redis_l5 sdlngdp_l5   sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i cathol
> ic_i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year if income_imp<=4 [w=S017]  || ctry_survey_r:, vce(cluster ctry_survey_r)
>     
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -87644.621  
Iteration 1:   log pseudolikelihood = -87644.621  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     41,439
Group variable: ctry_survey_~n                  Number of groups  =        888

                                                Obs per group:
                                                              min =          1
                                                              avg =       46.7
                                                              max =        620

                                                Wald chi2(36)     =   12326.87
Log pseudolikelihood = -87644.621               Prob > chi2       =     0.0000

                          (Std. Err. adjusted for 888 clusters in ctry_survey_region)
-------------------------------------------------------------------------------------
                    |               Robust
         attendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
             belief |   .2618115   .0121434    21.56   0.000     .2380109     .285612
           redis_l5 |   -3.23832    .398337    -8.13   0.000    -4.019047   -2.457594
                    |
c.belief#c.redis_l5 |   .2066368   .0332497     6.21   0.000     .1414687    .2718049
                    |
         sdlngdp_l5 |  -.0508892   .0529023    -0.96   0.336    -.1545758    .0527974
       sdincome_imp |   .0801195   .0308141     2.60   0.009     .0197249    .1405141
              sdage |   .3298352   .0710207     4.64   0.000     .1906372    .4690333
             sdage2 |  -.2154659   .0727891    -2.96   0.003    -.3581299    -.072802
         notlooking |   .1783657   .0378215     4.72   0.000     .1042369    .2524946
           employed |   .0496885   .0375774     1.32   0.186    -.0239619    .1233389
             female |   .3784288   .0248616    15.22   0.000     .3297011    .4271566
        sdeducation |   .0457864    .015191     3.01   0.003     .0160125    .0755603
         orthodox_i |   .9908135   .1075584     9.21   0.000     .7800029    1.201624
       protestant_i |   1.274587   .0972954    13.10   0.000     1.083891    1.465282
         catholic_i |   .9814252   .0617552    15.89   0.000     .8603872    1.102463
     sdstatefund_ch |   .1915649   .0424809     4.51   0.000      .108304    .2748258
          typecity1 |    .148273   .0455979     3.25   0.001     .0589028    .2376432
          typecity2 |   .0200688   .0372009     0.54   0.590    -.0528436    .0929813
         sdorthodox |  -.2454371   .0485828    -5.05   0.000    -.3406577   -.1502165
         sdcatholic |  -.0583591   .0436269    -1.34   0.181    -.1438663     .027148
                    |
               year |
              1995  |    .025476   .1507102     0.17   0.866    -.2699106    .3208625
              1996  |  -.2908903   .1368648    -2.13   0.034    -.5591404   -.0226402
              1997  |   .1756836   .1589468     1.11   0.269    -.1358464    .4872136
              1998  |   .3923676    .147179     2.67   0.008     .1039021    .6808331
              1999  |   .7575582   .2403908     3.15   0.002     .2864009    1.228715
              2000  |   .3699093   .1492597     2.48   0.013     .0773657    .6624529
              2001  |   .9585322   .2232085     4.29   0.000     .5210517    1.396013
              2002  |   .8525793   .1640586     5.20   0.000     .5310304    1.174128
              2004  |   1.127111   .1093226    10.31   0.000     .9128428     1.34138
              2005  |   .3184027   .1286368     2.48   0.013     .0662792    .5705263
              2006  |   .0132483   .1266287     0.10   0.917    -.2349394    .2614361
              2007  |  -.5774894   .2572052    -2.25   0.025    -1.081602   -.0733766
              2009  |  -.4327875    .149558    -2.89   0.004    -.7259159   -.1396591
              2011  |    .009861   .1530334     0.06   0.949    -.2900789    .3098008
              2012  |    .393395   .1180294     3.33   0.001     .1620615    .6247284
              2013  |   .4967316   .2403009     2.07   0.039     .0257505    .9677128
              2014  |   .4709296   .1758006     2.68   0.007     .1263666    .8154925
                    |
              _cons |   1.606569   .1783129     9.01   0.000     1.257082    1.956056
-------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .6337542   .0244035      .5876846    .6834352
-----------------------------+------------------------------------------------
                sd(Residual) |   1.970602   .0178212      1.935981    2.005842
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. predict a_poor if e(sample)
(option xb assumed)
(110,530 missing values generated)

. 
. xtmixed   attendance c.belief##c.redis_l5 sdlngdp_l5   sdincome_imp sdage sdage2 notlook employed female sdeduc orthodox_i protestant_i cathol
> ic_i  sdstatefund_ch typecity1 typecity2 sdorthodox sdcatholic i.year if income_imp>=6 [w=S017]  || ctry_survey_r:, vce(cluster ctry_survey_r)
>     
(sampling weights assumed)

Obtaining starting values by EM: 

Performing gradient-based optimization: 

Iteration 0:   log pseudolikelihood = -57318.096  
Iteration 1:   log pseudolikelihood = -57318.096  

Computing standard errors:

Mixed-effects regression                        Number of obs     =     27,853
Group variable: ctry_survey_~n                  Number of groups  =        867

                                                Obs per group:
                                                              min =          1
                                                              avg =       32.1
                                                              max =        531

                                                Wald chi2(36)     =   10326.83
Log pseudolikelihood = -57318.096               Prob > chi2       =     0.0000

                          (Std. Err. adjusted for 867 clusters in ctry_survey_region)
-------------------------------------------------------------------------------------
                    |               Robust
         attendance |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
--------------------+----------------------------------------------------------------
             belief |   .3065639   .0162152    18.91   0.000     .2747826    .3383451
           redis_l5 |  -1.302667   .4490062    -2.90   0.004    -2.182703   -.4226306
                    |
c.belief#c.redis_l5 |   .1086909    .044514     2.44   0.015     .0214451    .1959367
                    |
         sdlngdp_l5 |  -.1617888   .0540831    -2.99   0.003    -.2677898   -.0557879
       sdincome_imp |  -.0359307   .0241435    -1.49   0.137     -.083251    .0113896
              sdage |   .1982945   .0848574     2.34   0.019     .0319771    .3646119
             sdage2 |  -.0586102   .0889851    -0.66   0.510    -.2330178    .1157973
         notlooking |   .1133667   .0629627     1.80   0.072    -.0100378    .2367713
           employed |   .0269772   .0540032     0.50   0.617    -.0788673    .1328216
             female |   .2223658   .0318169     6.99   0.000     .1600059    .2847257
        sdeducation |   .1070887   .0163653     6.54   0.000     .0750133     .139164
         orthodox_i |   .9562422   .1007338     9.49   0.000     .7588076    1.153677
       protestant_i |   .9950119   .0759918    13.09   0.000     .8460708    1.143953
         catholic_i |   1.107738   .0609669    18.17   0.000     .9882453    1.227231
     sdstatefund_ch |   .1208376   .0420469     2.87   0.004     .0384271     .203248
          typecity1 |   .0397504     .04965     0.80   0.423    -.0575618    .1370625
          typecity2 |   .0017476    .038611     0.05   0.964    -.0739286    .0774238
         sdorthodox |  -.1848154   .0426935    -4.33   0.000    -.2684931   -.1011378
         sdcatholic |  -.1439246   .0396461    -3.63   0.000    -.2216295   -.0662196
                    |
               year |
              1995  |   .5614889   .1905146     2.95   0.003     .1880871    .9348908
              1996  |   .0803238   .1564101     0.51   0.608    -.2262344    .3868819
              1997  |   .4923515   .1642963     3.00   0.003     .1703366    .8143664
              1998  |   .6879055   .1585065     4.34   0.000     .3772384    .9985726
              1999  |   1.572708   .2082128     7.55   0.000     1.164618    1.980797
              2000  |   .5240503   .1697256     3.09   0.002     .1913943    .8567062
              2001  |   1.140509    .165108     6.91   0.000     .8169029    1.464114
              2002  |   .3661089   .1961028     1.87   0.062    -.0182455    .7504634
              2004  |   1.393778   .3246781     4.29   0.000     .7574203    2.030135
              2005  |   .5827767   .1529089     3.81   0.000     .2830808    .8824726
              2006  |   .4664311   .1558663     2.99   0.003     .1609388    .7719234
              2007  |   .1101043   .1899854     0.58   0.562    -.2622603    .4824689
              2009  |   .1764487    .208696     0.85   0.398    -.2325878    .5854853
              2011  |   .2520759   .1664553     1.51   0.130    -.0741705    .5783223
              2012  |   .6506771   .1517523     4.29   0.000     .3532481     .948106
              2013  |   .9153521   .2504209     3.66   0.000     .4245361    1.406168
              2014  |   .9416228   .1889383     4.98   0.000     .5713106    1.311935
                    |
              _cons |   .8032039   .2111049     3.80   0.000     .3894459    1.216962
-------------------------------------------------------------------------------------

------------------------------------------------------------------------------
                             |               Robust           
  Random-effects Parameters  |   Estimate   Std. Err.     [95% Conf. Interval]
-----------------------------+------------------------------------------------
ctry_surve~n: Identity       |
                   sd(_cons) |   .5785695    .025079      .5314455    .6298719
-----------------------------+------------------------------------------------
                sd(Residual) |   1.869711    .018624      1.833563    1.906572
------------------------------------------------------------------------------

Warning: Sampling weights were specified only at the first level in a multilevel model. If these weights are indicative of overall and not
         conditional inclusion probabilities, then results may be biased.

. predict a_rich if e(sample)
(option xb assumed)
(124,116 missing values generated)

. 
. gen lowredis=redis_l5<=.089

. replace lowredis=. if redis_l5>.089&redis_l5<.38
(86,556 real changes made, 86,556 to missing)

. label var lowredis "Eq 1 for both quarter, 0 for top quarter, missing otherwise"

. cap drop pa_*                     

. gen pa_rich_low=.       
(151,969 missing values generated)

. gen pa_poor_low=.       
(151,969 missing values generated)

. gen pa_rich_high=.      
(151,969 missing values generated)

. gen pa_poor_high=.                
(151,969 missing values generated)

. forvalues i=1/10{
  2. *Low redistribution countries
.         *poor people in low redis countries
.         sum a_poor if belief ==`i'&redis_l5<=.089
  3.         replace pa_poor_low=r(mean) if belief ==`i'&redis_l5<=.089
  4.         * rich people in low redis countries
.         sum a_rich if belief ==`i'&redis_l5<=.089
  5.         replace pa_rich_low=r(mean) if belief ==`i'&redis_l5<=.089
  6. *High redistribution countries
.         *poor people in low redis countries
.         sum a_poor if belief ==`i'&redis_l5<=.089
  7.         replace pa_poor_high=r(mean) if belief ==`i'&redis_l5>=.38
  8.         * rich people in low redis countries
.         sum a_rich if belief ==`i'&redis_l5<=.089
  9.         replace pa_rich_high=r(mean) if belief ==`i'&redis_l5>=.38
 10. }

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        328     2.12218    .6276167   1.085022   4.574967
(1,085 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        210    1.663654    .5104975   .8690277   4.203176
(1,085 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        328     2.12218    .6276167   1.085022   4.574967
(6,310 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        210    1.663654    .5104975   .8690277   4.203176
(6,310 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        143     2.53456    .6753547   1.403526    4.19414
(389 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |         64     2.02308    .6400189   1.150281   3.755517
(389 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        143     2.53456    .6753547   1.403526    4.19414
(2,164 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |         64     2.02308    .6400189   1.150281   3.755517
(2,164 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        170    2.906743    .6835037   1.702991   4.931686
(490 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |         74    2.470382    .6017452   1.327436   3.865743
(490 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        170    2.906743    .6835037   1.702991   4.931686
(1,755 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |         74    2.470382    .6017452   1.327436   3.865743
(1,755 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        181    3.132938    .6456088   1.895825   4.926015
(481 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |         80    2.948638    .7044598   1.765656   4.329185
(481 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        181    3.132938    .6456088   1.895825   4.926015
(1,130 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |         80    2.948638    .7044598   1.765656   4.329185
(1,130 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        486    3.551827    .6776228   2.024636   5.496758
(1,561 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        252    3.367732     .629019    2.02228   5.269286
(1,561 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        486    3.551827    .6776228   2.024636   5.496758
(2,392 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        252    3.367732     .629019    2.02228   5.269286
(2,392 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        308    4.087463    .6460255   2.480251   6.135934
(1,122 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        231    4.001253    .6623617   2.472265   5.615733
(1,122 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        308    4.087463    .6460255   2.480251   6.135934
(1,634 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        231    4.001253    .6623617   2.472265   5.615733
(1,634 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        436    4.435002    .7035816   2.591694   5.978688
(1,708 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        352    4.346143    .6357995   2.782055   5.737292
(1,708 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        436    4.435002    .7035816   2.591694   5.978688
(1,923 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        352    4.346143    .6357995   2.782055   5.737292
(1,923 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        721    4.762643    .6140918   2.828041   6.567899
(2,769 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        483    4.736772    .5946431   2.982894   6.198875
(2,769 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        721    4.762643    .6140918   2.828041   6.567899
(2,281 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        483    4.736772    .5946431   2.982894   6.198875
(2,281 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        839    5.125134    .6172273   3.112643   6.724237
(3,101 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        513    5.054788    .5921441   3.510243   6.452764
(3,101 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |        839    5.125134    .6172273   3.112643   6.724237
(1,225 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |        513    5.054788    .5921441   3.510243   6.452764
(1,225 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |      7,259    5.558203    .6668711   3.459659   7.477357
(27,118 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |      3,591    5.449232    .6257767   3.599871   7.089107
(27,118 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_poor |      7,259    5.558203    .6668711   3.459659   7.477357
(3,740 real changes made)

    Variable |        Obs        Mean    Std. Dev.       Min        Max
-------------+---------------------------------------------------------
      a_rich |      3,591    5.449232    .6257767   3.599871   7.089107
(3,740 real changes made)

. 
. drop if lowredis==.
(86,556 observations deleted)

.         
. collapse a_rich a_poor, by(belief lowredis)     

.         
. scatter a_poor belief if lowre==1,legend(order(1 "Low redistribution" 2 "High Redistribution")) xtitle("Belief")ytitle(Mean attendance)sch(s2m
> ono)title(Poorer individuals)||scatter a_poor belief if lowr==0   

. graph export a_poor.pdf
(file a_poor.pdf written in PDF format)

. 
. scatter a_rich belief if lowre==1,legend(order(1 "Low redistribution" 2 "High Redistribution")) xtitle("Belief")ytitle(Mean attendance)sch(s2m
> ono)title(Richer individuals)||scatter a_rich belief if lowr==0   

. graph export a_rich.pdf
(file a_rich.pdf written in PDF format)

.         
. log close
      name:  <unnamed>
       log:  C:\Users\Ahmed\Dropbox\Replication_Files\Replication Files for CPS\MainAnalysis.log
  log type:  text
 closed on:  19 Jan 2023, 17:04:40
------------------------------------------------------------------------------------------------------------------------------------------------
